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.



------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to