I'm trying to get a server restarter to automatically restart on System boot on Ubuntu 12.04; I'm not sure why it's not working at this point and was hoping someone here may be able to help.
I have my restarter itself in /opt/startup
I'll go through the steps I took in order in the hopes that someone might be able to spot the flaw.
After the reboot I attach to the screen authserver and the only line of code there isCode:cd /opt/startup sudo touch authserver sudo nano authserver __________________ until /opt/DoxCore/bin/authserver -c /opt/DoxCore/etc/authserver.conf 2>&1; do date && echo "Authentication Server died with exit code $?. Restarting Now...." sleep 1; done; Ctrl+O -->Save |Ctrl+X-->Exit sudo chmod 7 authserver crontab -e //Scroll to bottom of crontab file and entered in: @reboot screen -dmS authserver @reboot cd /opt/startup @reboot ./authserver > /dev/null Ctrl+O-->Save | Ctrl+X-->Exit sudo reboot
Which tells me the program never executed; Any ideas on what's going on here?Code:$
When I move to /opt/startup and manually ./authserver it starts the authserver; any help would be appreciated.