[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: start-stop-daemon and lxc



Hi!

On Mon, 2014-03-24 at 16:12:48 +0100, Alex Mestiashvili wrote:
> I run into problem with s-s-d and linux-containers,
> this time it is nscd init script which kills nscd daemons inside conatiners
> when it is stopped on the host system.

The init script is buggy, the “Wait for children to finish too” code
will match any executable with that path even if running inside a
chroot/container/etc (missing a --pidfile for example, although that
would contradict the comment). But that seems to be code for when glibc
was using LinuxThreads and each thread was on its own PID, not now
with the new NPTL. It probably needs to be reevaluated, and possibly
dropped entirely, although maybe there's another reason for that check.

> Would it make sense to implement a check for a PPID of a process ?

Independently of the above, such a new matching option (--ppid) might
be useful in general, so I guess I could add something like that, yes.
I've added a note to add it for either 1.17.7 or 1.17.8.

Thanks,
Guillem


Reply to: