I'm running a centos 6.7 server (command line only) and I'm trying to auto-start a live tv stream whenever the machine boots up. I have a bash script "/root/start-stream.sh" with this command in it:
Code:
#!/bin/bash
# start tzap on pick tv
echo "starting tzap"
/usr/bin/tzap -S -r Pick
sleep 3
<snip-rest of script>
if I run the same command "
/usr/bin/tzap -S -r Pick" in a shell it works perfectly, and if I manually run the script "/root/start-stream.sh" that works fine too, but if I put the script into /etc/rc.d/rc.local so it auto-starts it crashes with this:
Quote:
/root/start-stream.sh: line 6: 2922 Segmentation fault (core dumped) /usr/bin/tzap -S -r Pick
|
why is it crashing? and can this be solved? thanks for any help.