Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-23 Thread Pavel Machek
Hi! > In this case, the container shutdowns correctly but, at the end, the > init process is waiting indefinitely and we have the containers stuck > with one process (the init process). > > In order to fix that, we used a hypervisor process, parent of the > container's init process, watching for

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Serge Hallyn
Quoting Bruno Prémont (bonb...@linux-vserver.org): > On Thu, 11 August 2011 Daniel Lezcano wrote: > > On 08/11/2011 06:30 PM, Bruno Prémont wrote: > > > On Wed, 10 August 2011 Daniel Lezcano wrote: > > >> On 08/10/2011 10:10 PM, Bruno Prémont wrote: > > >>> Hi Daniel, > > >>> > > >>> [I'm adding

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Daniel Lezcano
On 08/11/2011 07:04 PM, Bruno Prémont wrote: > On Thu, 11 August 2011 Daniel Lezcano wrote: >> On 08/11/2011 06:30 PM, Bruno Prémont wrote: >>> On Wed, 10 August 2011 Daniel Lezcano wrote: On 08/10/2011 10:10 PM, Bruno Prémont wrote: > Hi Daniel, > > [I'm adding containers ml as

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Bruno Prémont
On Thu, 11 August 2011 Daniel Lezcano wrote: > On 08/11/2011 06:30 PM, Bruno Prémont wrote: > > On Wed, 10 August 2011 Daniel Lezcano wrote: > >> On 08/10/2011 10:10 PM, Bruno Prémont wrote: > >>> Hi Daniel, > >>> > >>> [I'm adding containers ml as we had a discussion there some time ago > >>> f

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Daniel Lezcano
On 08/11/2011 06:30 PM, Bruno Prémont wrote: > On Wed, 10 August 2011 Daniel Lezcano wrote: >> On 08/10/2011 10:10 PM, Bruno Prémont wrote: >>> Hi Daniel, >>> >>> [I'm adding containers ml as we had a discussion there some time ago >>> for this feature] >> [ ... ] >> +if (cmd == LINUX_RE

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-11 Thread Bruno Prémont
On Wed, 10 August 2011 Daniel Lezcano wrote: > On 08/10/2011 10:10 PM, Bruno Prémont wrote: > > Hi Daniel, > > > > [I'm adding containers ml as we had a discussion there some time ago > > for this feature] > > [ ... ] > > >> +if (cmd == LINUX_REBOOT_CMD_RESTART2) > >> +if (strncpy_f

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-10 Thread Bruno Prémont
Hi Daniel, [I'm adding containers ml as we had a discussion there some time ago for this feature] One comment below: On Mon, 08 August 2011 Daniel Lezcano wrote: > Hi all, > > I am trying to solve one of the problems the linux container community > is facing : > >How to catch when a proc

Re: [lxc-devel] [RFC] catching sys_reboot syscall

2011-08-10 Thread Daniel Lezcano
On 08/10/2011 10:10 PM, Bruno Prémont wrote: > Hi Daniel, > > [I'm adding containers ml as we had a discussion there some time ago > for this feature] [ ... ] >> +if (cmd == LINUX_REBOOT_CMD_RESTART2) >> +if (strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1) < 0) >> +