I am trying to deploy my first upstart job to reload my server if it crashes but no matter what I put into the job it gives error of unknown job. Even if I have the job doing nothing only comments. This is the job. only few lins. I'm using emacs
# comment
description "golf"
script
export HOME="/root"
exec sudo -u
ubuntu /usr/local/bin/node
/home/ubuntu/golf/node/lib/db-server1.js 2>&1
>> /var/log/golf.log
end script
The paths are correct but I always get error unknown job Golf, even if I remove everything. Thanks for any advise
Most likely, the service name does not match what you expect. Most notably, the upper-case G is quite unusual. Are you certain that there's a service definition in /etc/init.d/Golf.conf, as opposed to /etc/init.d/golf.conf (note the lower-case g)?