Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Guido Jäkel
On 2012-05-25 16:40, Christian Seiler wrote: > I'd really prefer shutting down a container just worked out of the box > without any strange modifications to /etc/inittab for sysvinit. I > really think shutting down containers properly is a functionality that > LXC should support out of the box. De

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On 05/25/2012 11:24 AM, Christian Seiler wrote: > > Hi, > > > >> Have you looked at the lxc-shutdown script we have in Ubuntu and the > >> integration we have with upstart? > > > > No, not yet, but I'll look at it later. > > > >> lxc-shutdown send

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Ward, David - 0663 - MITLL
On 25/05/12 11:28, Ward, David - 0663 - MITLL wrote: On 25/05/12 10:40, Christian Seiler wrote: Hi, my lxc management script uses lxc-stop just for an emergency action called "fored-stop" and it will be also applied, if a normal "stop" (alias "halt") action will timeout after 5min. For this no

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Stéphane Graber
On 05/25/2012 11:24 AM, Christian Seiler wrote: > Hi, > >> Have you looked at the lxc-shutdown script we have in Ubuntu and the >> integration we have with upstart? > > No, not yet, but I'll look at it later. > >> lxc-shutdown sends two different signals: >> reboot => SIGINT >> shutdown => SIG

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Ward, David - 0663 - MITLL
On 25/05/12 10:40, Christian Seiler wrote: Hi, my lxc management script uses lxc-stop just for an emergency action called "fored-stop" and it will be also applied, if a normal "stop" (alias "halt") action will timeout after 5min. For this normal shutdown (or reboot) of a container, I'm sending

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Christian Seiler
Hi, > Have you looked at the lxc-shutdown script we have in Ubuntu and the > integration we have with upstart? No, not yet, but I'll look at it later. > lxc-shutdown sends two different signals: > reboot => SIGINT > shutdown => SIGPWR > > These are caught by upstart and will trigger a clean re

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Stéphane Graber
On 05/25/2012 07:56 AM, Christian Seiler wrote: > Hi, > > Currently, lxc-stop sends SIGKILL to the init process of the container, > which causes all the other processes in the container to also receive > a SIGKILL. I don't think that is a good course of action, since sending > SIGKILL to for examp

Re: [lxc-devel] Shutting down containers properly

2012-05-25 Thread Christian Seiler
Hi, > my lxc management script uses lxc-stop just for an emergency action > called "fored-stop" and it will be also applied, if a normal "stop" > (alias "halt") action will timeout after 5min. For this normal > shutdown (or reboot) of a container, I'm sending just a SIGPWR (or > SIGINT) to the con

[lxc-devel] Shutting down containers properly

2012-05-25 Thread Jäkel , Guido
de] >Sent: Friday, May 25, 2012 1:56 PM >To: lxc-devel@lists.sourceforge.net >Subject: [Spam-Wahrscheinlichkeit=99][lxc-devel] Shutting down containers >properly > >Hi, > >Currently, lxc-stop sends SIGKILL to the init process of the container, >which causes all the othe

[lxc-devel] Shutting down containers properly

2012-05-25 Thread Christian Seiler
Hi, Currently, lxc-stop sends SIGKILL to the init process of the container, which causes all the other processes in the container to also receive a SIGKILL. I don't think that is a good course of action, since sending SIGKILL to for example a database server can lead to potential data loss. A muc