On Wed, Mar 14, 2012 at 1:58 PM, Fajar A. Nugraha <l...@fajar.net> wrote:
> On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann
> <daniel.baum...@progress-technologies.net> wrote:
>> On 03/14/2012 02:37 AM, Serge Hallyn wrote:
>>> That unfortunately won't work with upstart in the host and guest.
>>
>> too bad then.
>>
>> since i have absolutely no clue about upstart at all.. i just hope there
>> can be found/made an equivalent of telinit, otherwise that seems like
>> quite a disadvantage of upstart, or, is running ubuntu with sysvinit
>> still supported?
>
> 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?

After some experiments, upstart ignores SIGPWR, but still listens to
SIGINT, and killing the process from the host works. So modifying the
containter's control-alt-delete.conf to run "shutdown -h" instead of
"shutdown -r" can let the host tell the guest to shutdown cleanly.

-- 
Fajar

------------------------------------------------------------------------------
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