[PATCH 0/2] Send a SIGCHLD to the init's pid namespace parent when reboot

Serge E. Hallyn serge at hallyn.com
Sun Aug 14 14:36:42 PDT 2011

Quoting Oleg Nesterov (oleg at redhat.com):
> On 08/11, Daniel Lezcano wrote:
> >
> > In the case of a VPS, when we shutdown/halt/reboot the container, the
> > reboot utility will invoke the sys_reboot syscall which has the bad
> > effect to reboot the host.
> Stupid question. Can't sys_reboot() simply kill init (and thus the whole
> pid_ns) in this case?

The goal is to be able to distinguish a request for reboot from shutdown.
If we just kill the init, then the parent of init (the container monitor)
cannot restart the container to emulate reboot.

[ sorry if I misunderstand what you're asking ]


More information about the Containers mailing list