Managing forking processes

Yang Zhang yanghatespam at gmail.com
Fri Dec 10 00:00:27 GMT 2010


How do I use upstart to manage programs that fork?

With this job, blah.conf:

<<<
expect fork
pid file /tmp/pid
exec bash -c 'echo $$ > /tmp/pid ; exec sleep 999 &'
>>>

`start blah` hangs forever, /tmp/pid never shows up, and sleep never runs.



More information about the upstart-devel mailing list