I have an Upstart conf file in /etc/init which starts fine if i start it manually like this:
sudo initctl start myconf
If i run it without the sudo command i get the error name=(unset) error, which is due to user privileges, but that shouldn't be the problem when the job is initialised at system boot when Upstart kicks in right? (because thats all run by the root).
The content of the script is:
start on runlevel [2345]
stop on runlevel [^2345]
exec /spatial/server_init.sh
...where the server_init.sh runs a python script based server. When i check the status of the script right after i login to shell, it says stop/waiting. I also tried the conf file with "start on net-device-up" but nothing changes. Is there a way to see the Upstart system log or something similar that might help me debug the problem.
Thanks
chdir
in your upstart script and that dir doesn't exist, no log will be written and you'll get the cryptic message:start: Job failed to start