Page 1 of 1

Will not autostart in linux

PostPosted: Sun Oct 05, 2014 3:34 am
by widgeteye
I have this on a headless box with no terminal.


I have tried the following already;

put it in rc.local
/shared/subsonic/subsonic.sh
according to the logs it starts but then is not running
doesn't show up in ps aux so it seems as soon as it starts it dies.
I have already tried nohup /shared/subsonic/subsonic.sh
According to the nohup.out file it started, there is no other info.

I have tried putting it in crontab with the following command:
@reboot /shared/subsonic/subsonic.sh
crontab sends me an email saying it is started and gives the process number but it is not there when I log in via ssh.

If I log in via ssh and start it, it runs fine, works like a charm.
So there is something about the output of subsonic needing to be fed to a terminal on startup or it dies.

Any ideas???

Re: Will not autostart in linux

PostPosted: Sun Oct 05, 2014 11:37 pm
by gurutech
Have you tried "chkconfig subsonic on" ?