Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 15:05:07 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [PATCH] Shutdown cooloff feature
Message-ID:  <86ske5gav0.fsf@ds4.des.no>
In-Reply-To: <h9t09n$qhl$1@ger.gmane.org> (Ivan Voras's message of "Tue, 29 Sep 2009 14:58:37 %2B0200")
References:  <4AC141B0.4090705@delphij.net> <alpine.BSF.2.00.0909291245080.91454@fledge.watson.org> <h9st65$eni$1@ger.gmane.org> <86ws3iexl3.fsf@ds4.des.no> <h9t09n$qhl$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ivan Voras <ivoras@freebsd.org> writes:
> Dag-Erling Sm=C3=B8rgrav <des@des.no> writes:
> > [...] 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)?

Good question.  You definitely want to run rc.shutdown in the common
case (multi-user mode), but running it in single-user mode may have
unintended consequences.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ske5gav0.fsf>