[Lxc-users] shutting down CentOS6 container

Greg Kurz gkurz at fr.ibm.com
Tue Oct 18 08:13:30 UTC 2011


On Mon, 2011-10-17 at 23:04 +0300, Iliyan ilf Stoyanov wrote:
> Hi again,
> 
> what about lxc-execute?
> 
> br,
> --ilf
> 

Hi,

lxc-execute is the lxc-start variant to run application containers.
Use lxc-attach if you need to issue a command in an already running
container.

Cheers.

> On Mon, 2011-10-17 at 21:02 +0100, Milos Negovanovic wrote:
> > On Mon, Oct 17, 2011 at 10:36:24PM +0300, Iliyan ilf Stoyanov wrote:
> > > Hi Milos,
> > > 
> > > have you tried doing lxc-console --name $NAME_OF_YOUR_CENTOS6_CONTAINER,
> > > then loging in and issuing shutdown -h now. It works for me on Fedora
> > > 15/SL6.1.
> > > 
> > > BR,
> > > --ilf 
> > 
> > I am looking for a way to automatically shutdown container. Something I
> > can use from my rc scripts on the host to orderly shutdown containers on
> > host OS reboot/shutdown. I know I can ssh into the container and issue
> > shutdown command, that works, but thats not what I am looking for.
> > 
> > Regards
> 
> 
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
> 

-- 
Gregory Kurz                                     gkurz at fr.ibm.com
Software Engineer @ IBM/Meiosys                  http://www.ibm.com
Tel +33 (0)534 638 479                           Fax +33 (0)561 400 420

"Anarchy is about taking complete responsibility for yourself."
        Alan Moore.





More information about the lxc-users mailing list