Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Mikhail Gusarov
Twas brillig at 10:38:05 08.04.2010 UTC+02 when dlezc...@fr.ibm.com did gyre and gimble: DL> Yep, I did a quick hack in sys_reboot sending a SIGPWR to the DL> parent of the pid namespace when this one is not the init_pid_ns, DL> but I didn't had time to propose/send an acceptable version and

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Daniel Lezcano
Michael Tokarev wrote: > 08.04.2010 11:56, Michael Tokarev wrote: > [] >> The problem. The current detection is based on the >> content of container's /var/run/utmp. This is goood >> provided the container actually touches that file, >> but this is not true for "single-application" >> containers, i

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Daniel Lezcano
Michael Tokarev wrote: > I come across a series of patches to implement > reboot/halt of a container. Patches were discussed > before, but I had no time to look at that stuff in > more detail... > The problem. The current detection is based on the > content of container's /var/run/utmp. This i

Re: [lxc-devel] detecting reboot/halt...

2010-04-08 Thread Michael Tokarev
08.04.2010 11:56, Michael Tokarev wrote: [] > The problem. The current detection is based on the > content of container's /var/run/utmp. This is goood > provided the container actually touches that file, > but this is not true for "single-application" > containers, i.e. the ones without full init.d

[lxc-devel] detecting reboot/halt...

2010-04-08 Thread Michael Tokarev
I come across a series of patches to implement reboot/halt of a container. Patches were discussed before, but I had no time to look at that stuff in more detail... The problem. The current detection is based on the content of container's /var/run/utmp. This is goood provided the container actua