> Waiting until the parent dies will not work in cases such as squid, where the 
> parent
> never dies.

This didn't make sense to me, so I had a look.  The current squid
package in Ubuntu runs with -N, which is "no daemonize" (i.e.,
foreground) mode.  So in that case, certainly, the parent doesn't die...
because the parent doesn't fork.  And the upstart job uses neither
'expect fork' nor 'expect daemon'.  However, if run without -N, squid
certainly does fork and exit as expected.

We still certainly need to think carefully about changing upstart to
track exits instead of just forks; but for my part I can't see any way
that this behavior change would break existing jobs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/530779

Title:
  init: does not wait for parent to exit when following forks

To manage notifications about this bug go to:
https://bugs.launchpad.net/upstart/+bug/530779/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to