Re: [PATCH] Shutdown cooloff feature

From: Ivan Voras <ivoras_at_freebsd.org>
Date: Tue, 29 Sep 2009 14:58:37 +0200
Dag-Erling Smørgrav wrote:
> Ivan Voras <ivoras_at_freebsd.org> writes:
>> There is difference between reboot and shutdown -r now???
> 
> Yes.  This has always been the case.
> 
>> Reading the man pages, it doesn't look so. What is the difference?
>> Does shutdown -r call rc.d scripts with "stop"?
> 
> Indirectly, yes: shutdown(8) sends either SIGINT, SIGUSR or SIGUSR2 to
> init(8), which runs /etc/rc.shutdown before killing all remaining
> processes and either reboot / halt or start a single-user shell, while
> reboot(8) and halt(8) send SIGTSTP to init(8), then SIGTERM to every
> other process in the system, then SIGKILL to any process that hasn't
> responded to SIGTERM after somewhere between five and sixty seconds,
> before issuing a reboot(2) syscall.

Is this distinction between them useful (other than possibly speed of 
shutdown/reboot)?
Received on Tue Sep 29 2009 - 10:58:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:56 UTC