On Sun, Sep 20, 2015 at 1:45 PM, Matthew Martin <matt.a.mar...@gmail.com> wrote:
> On Sep 20, 2015 3:12 PM, "Quartz" <qua...@sneakertech.com> wrote:
>>
>> I have a machine where tapping the front panel power button correctly
> halts and powers off the machine.... however there's a solid 10 second
> delay after I press the button before anything happens. Is there any way to
> speed this process up?
>
> Hold the button down.

Heh, hard power-off, resulting in unclean filesystems probably isn't
what the original poster meant.

For power off via button, init runs "sh /etc/rc shutdown", then sends
all processes a SIGHUP, then waits 5 seconds.  If there are any
processes still alive it'll send SIGTERM and wait another 5 seconds.
If any are still alive at that point it'll send'em all SIGKILL and
wait another 5 seconds.  It'll then tell the kernel to halt the
system.

So, slow /etc/rc.d/* script delaying the /etc/rc shutdown step?  Or do
you have some daemon which isn't killed by its rc.d script, nor by
SIGHUP, thus requiring SIGTERM and at least 10 seconds?


Philip Guenther

Reply via email to