@axel - Okay. Let’s skip PM2 for now and just concentrate on getting your script running.
startcam.sh script and paste in the mjpg_streamer command:
mjpg_streamer -o “output_http.so -w ./www” -i “input_uvc.so -f 1 -q 75 -y” -p 8081
Once you have the script file to where it’s only that command, you can try to run that script manually by typing
./startcam.sh. That should be the equivalent of typing the command in yourself.
Try that and let us know how it goes.