The above patch adds a post-start script that loops until the statd
parent process has exited.  This is the best workaround that I can think
of.  It doesn't seem possible to just wait() for the process with the
current implementation of upstart's "expect fork" feature.

Suggestion for a better approach:  The start script should be allowed to
tell upstart the PID of the process that upstart should supervise.  The
information could be sent (for example) via a pipe, or the traditional
/var/run/<job>.pid file.  Then the knowledge of how to correctly start a
particular daemon could be entirely in the start script where it
belongs, rather than part of it being coded into upstart.  This would
allow the "expect fork" and "expect daemon" features to go away.

-- 
Race condition in statd.conf
https://bugs.launchpad.net/bugs/610863
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to