Equivalent for the "pid file" stanza in newer versions of upstart
I'd like to be able to use upstart to manage daemons where I don't have complete control over the forking behaviour. The "pid" stanza is removed as of version 0.3.9, so I can't point it at a pid file. What is the correct way to go about this? Do I have to write a wrapper script that issues SIGSTOP?
Read this section of the Upstart Cookbook very carefully: http://upstart.ubuntu.com/cookbook/#expect
In a nutshell, if your daemon forks once, use "expect fork
". If it truly daemonizes (double-forks), specify "expect daemon
".