>Can the host send a signal to the init's container? If yes, sysvinit
>responds to SIGINT. Does upstart  behave the same (e.g. process
>control-alt-delete.conf when the signal is received)? It's set to
>reboot by default, but perhaps there's some other signal than we can
>use for shutdown?

SysVInit responds to SIGINT -- normaly with a reboot action -- and to SIGPWR. I 
add the line

        pf:12345:powerwait:/sbin/halt

to the containers  /etc/inittab  file. In my lxc managing script I'm using this 
to gracefully reboot or halt ("powerdown") containers by sending this signals 
to the init of the container.

If someone is able to add something to the upstart  or other corresponding 
frameworks, I would suggest to use the same signals for compatibility.


Guido


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to