Comment 16 for bug 530779

Revision history for this message
Steve Langasek (vorlon) wrote :

> 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.