[Lxc-users] shutting down CentOS6 container

Milos Negovanovic milos.negovanovic at gmail.com
Mon Oct 17 21:05:12 UTC 2011


On Mon, Oct 17, 2011 at 10:37:04PM +0200, Papp Tamas wrote:
> On 10/17/2011 10:26 PM, Milos Negovanovic wrote:
> >
> >If I am not mistaken thats similar approach to using this script:
> >
> >http://pastie.org/2713689
> >
> >Ive tried using that python script, but instead of shutting down my
> >container restarts! Can you paste your container /etc/inittab by any
> >chance?
> >
> 
> There is no inittab, Ubuntu and also CentOS 6 uses upstart.
> I tried the python script, it just works fine.
> 
> tamas

OK got it working by tweaking the following config file inside centos6
container:

/etc/init/control-alt-delete.conf

After I modified the behavior of ctrl-alt-del handling, container shuts
down using that python script.

Thanks for all the suggestions. :)

Regards
-- 
Milos Negovanovic
milos.negovanovic at gmail.com




More information about the lxc-users mailing list