Top Edit: Never mind. I fixed this by putting #!/bin/bash at the top of my script.
/////////////////
I want to run a script at startup, so that ffmpeg pulls video from my BeeCam and pushes it to my YouTube streaming channel.
Per this guide I did:
Code: Select all
sudo nano /etc/init.d/StreamToYouTube.sh
<pasted in known, working script>
sudo chmod 755 /etc/init.d/StreamToYouTube.sh
sudo update-rc.d StreamToYouTube.sh defaults
Code: Select all
insserv: warning: script 'K01StreamToYouTube.sh' missing LSB tags and overrides
insserv: warning: script 'StreamToYouTube.sh' missing LSB tags and overrides
When I boot I get an error in the message stream:
Code: Select all
[FAILED] Failed to start (null)
see 'systemctl status StreamToYouTube.service' for details
Code: Select all
raspberrypi:~ $ systemctl status StreamToYouTube.service
● StreamToYouTube.service - (null)
Loaded: loaded (/etc/init.d/StreamToYouTube.sh)
Active: failed (Result: exit-code) since Wed 1969-12-31 16:00:18 PST; 48 years 0 months ago
Process: 568 ExecStart=/etc/init.d/StreamToYouTube.sh start (code=exited, status=203/EXEC)
Thanks!