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

start-stop-daemon and lxc



Dear dpkg maintainers, 

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.

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

that's how it looks on my system:

#ps -ef | grep nscd

UID        PID  PPID  C STIME TTY          TIME CMD
root     29214     1  0 16:03 ?        00:00:00 /usr/sbin/nscd
root     29267 10895  0 16:03 ?        00:00:00 /usr/sbin/nscd

process with ppid 1 belongs to the host system, the second is in lxc.

So if s-s-d would check by default only processes with ppid 1 and optionally have a flag disabling this check  would solve the potential problems with init scripts.

thank you, 
Alex




Reply to: