[Lxc-users] Ubuntu template questions

Fajar A. Nugraha list at fajar.net
Wed Mar 14 07:28:11 UTC 2012


On Wed, Mar 14, 2012 at 1:58 PM, Fajar A. Nugraha <list at fajar.net> wrote:
> On Wed, Mar 14, 2012 at 1:49 PM, Daniel Baumann
> <daniel.baumann at 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




More information about the lxc-users mailing list