[Lxc-users] How to make a container init DIE after finishing runlevel 0
Daniel Lezcano
daniel.lezcano at free.fr
Mon Jan 25 22:39:43 UTC 2010
Michael H. Warfield wrote:
> On Mon, 2010-01-25 at 21:50 +0100, Daniel Lezcano wrote:
>
>
>>> apologies for the length, but how is everyone else handling this?
>>> this is the last thing i need to solve before i actually start running
>>> all my services on this setup.
>>>
>>>
>> I was wondering if the kernel shouldn't send a signal to the init's
>> parent when sys_reboot is called.
>>
>
> Which still leaves open the question of telling the difference between a
> halt and a reboot.
Well, with the correct information in siginfo, that should do the trick:
si_num = SIGINFO ? SIGHUP ?
si_code = SI_KERNEL
si_int = the "cmd" passed to the reboot (2) function.
More information about the lxc-users
mailing list