Oops, I misdescribed init's waiting behavior: On Sun, Sep 20, 2015 at 5:59 PM, Philip Guenther <guent...@gmail.com> wrote: ... > 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.
It'll wait *up to* 5 seconds in each case: it'll continue immediately to the kernel as soon as all processes are dead, so a 10 second wait means slow /etc/rc.d script(s) or processes that won't die from SIGHUP or SIGTERM, which is rude of them... Philip Guenther