Re: [Lxc-users] Best way to shutdown a container

2010-08-24 Thread Clemens Perz
Howdy! :) I wasn't too happy with the solutions I saw, so I created another one - not any better, but different :) Just wanted to share it, until we can do it with lxc-attach. - Take the little script below, put it into sbin, make it executable and run it once inside the container. It creates an

Re: [Lxc-users] Best way to shutdown a container

2010-08-17 Thread Brian K. White
On 8/17/2010 11:43 AM, Gordon Henderson wrote: > On Fri, 13 Aug 2010, Clemens Perz wrote: > >> Hi! >> >> I used to run lxc-stop on my system containers when I actually want to >> run a halt. Only today I noticed, that stop actually kills all >> processes, not really doing a halt. I went through the

Re: [Lxc-users] Best way to shutdown a container

2010-08-17 Thread Dobrica Pavlinusic
On Tue, Aug 17, 2010 at 04:43:04PM +0100, Gordon Henderson wrote: > On Fri, 13 Aug 2010, Clemens Perz wrote: > > > Hi! > > > > I used to run lxc-stop on my system containers when I actually want to > > run a halt. Only today I noticed, that stop actually kills all > > processes, not really doing a

Re: [Lxc-users] Best way to shutdown a container

2010-08-17 Thread Gordon Henderson
On Fri, 13 Aug 2010, Clemens Perz wrote: > Hi! > > I used to run lxc-stop on my system containers when I actually want to > run a halt. Only today I noticed, that stop actually kills all > processes, not really doing a halt. I went through the lxc commands and > did not find something graceful to

Re: [Lxc-users] Best way to shutdown a container

2010-08-16 Thread Bodhi Zazen
possible and modify (simplify) the ones I keep. bodhi.zazen - Original Message - From: "Osvaldo Filho" To: "Ralf Schmitt" Cc: lxc-users@lists.sourceforge.net Sent: Saturday, August 14, 2010 6:15:16 AM Subject: Re: [Lxc-users] Best way to shutdown a container This work w

Re: [Lxc-users] Best way to shutdown a container

2010-08-14 Thread Ralf Schmitt
Osvaldo Filho writes: > This work with Upstart (Ubuntu 10.04)? I don't know. You'll have to try it. -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge htt

Re: [Lxc-users] Best way to shutdown a container

2010-08-14 Thread Osvaldo Filho
This work with Upstart (Ubuntu 10.04)? 2010/8/13 Ralf Schmitt : > Daniel Lezcano writes: > >> On 08/13/2010 03:55 PM, Clemens Perz wrote: >>> Hi! >>> >>> I used to run lxc-stop on my system containers when I actually want to >>> run a halt. Only today I noticed, that stop actually kills all >>> p

Re: [Lxc-users] Best way to shutdown a container

2010-08-13 Thread Денис Ризаев
2010/8/13 Daniel Lezcano > On 08/13/2010 03:55 PM, Clemens Perz wrote: > > Hi! > > > > I used to run lxc-stop on my system containers when I actually want to > > run a halt. Only today I noticed, that stop actually kills all > > processes, not really doing a halt. I went through the lxc commands

Re: [Lxc-users] Best way to shutdown a container

2010-08-13 Thread Daniel Lezcano
On 08/13/2010 04:30 PM, Clemens Perz wrote: > On 08/13/2010 03:55 PM, Clemens Perz wrote: > >> Hi! >> >> I used to run lxc-stop on my system containers when I actually want to >> run a halt. Only today I noticed, that stop actually kills all >> processes, not really doing a halt. I went through

Re: [Lxc-users] Best way to shutdown a container

2010-08-13 Thread Ralf Schmitt
Daniel Lezcano writes: > On 08/13/2010 03:55 PM, Clemens Perz wrote: >> Hi! >> >> I used to run lxc-stop on my system containers when I actually want to >> run a halt. Only today I noticed, that stop actually kills all >> processes, not really doing a halt. I went through the lxc commands and >>

Re: [Lxc-users] Best way to shutdown a container

2010-08-13 Thread Daniel Lezcano
On 08/13/2010 03:55 PM, Clemens Perz wrote: > Hi! > > I used to run lxc-stop on my system containers when I actually want to > run a halt. Only today I noticed, that stop actually kills all > processes, not really doing a halt. I went through the lxc commands and > did not find something graceful t

Re: [Lxc-users] Best way to shutdown a container

2010-08-13 Thread Clemens Perz
On 08/13/2010 03:55 PM, Clemens Perz wrote: > Hi! > > I used to run lxc-stop on my system containers when I actually want to > run a halt. Only today I noticed, that stop actually kills all > processes, not really doing a halt. I went through the lxc commands and > did not find something graceful

[Lxc-users] Best way to shutdown a container

2010-08-13 Thread Clemens Perz
Hi! I used to run lxc-stop on my system containers when I actually want to run a halt. Only today I noticed, that stop actually kills all processes, not really doing a halt. I went through the lxc commands and did not find something graceful to do this job from the host systems shutdown scripts.