Question on halt/poweroff behaviour
Bernhard Fischer
rep.dot.nop at gmail.com
Tue Sep 18 00:52:46 PDT 2007
On Mon, Sep 17, 2007 at 03:51:10PM +0200, Johannes Paschold wrote:
>Hi folks,
>
>i have a question to busyox' behaviour when calling poweroff, since
>clean poweroff is very essential for my system.
>
>As poweroff calls "halt" to end all processes and then turns off the
>computer my question is:
>
>How much time does my process have to shut down cleanly?
Look at init/halt.c
You have to set a delay yourself, if you need one.
>
>When my process recieves SIGTERM and my finalization needs, let's say
>3-4 seconds, does halt gently wait for me till i'm done, or will my
>process be killed. If it is killed, after which time?
You have to set this up in your inittab (or SysV runlevel scripts).
More information about the busybox
mailing list