I have a daemon in /opt/xyz/bin/xyz. Unfortunately it cannot fork itself into background and will not be able to do so within the next half year. My problem is the following: Entering
service xyz start
xyz start/running, process 23484
Always, even when it immediately exits with exit code 1. My config is this:
$ cat /etc/init/xyz.conf description "XYZ" start on started networking stop on shutdown exec /opt/xyz/bin/xyz
The rest works fine. Upstart recognizes when the process is already started, stopping works fine too.