From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 13:05:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9B39106566B; Tue, 29 Sep 2009 13:05:08 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 89A6A8FC2D; Tue, 29 Sep 2009 13:05:08 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 8FE006D41C; Tue, 29 Sep 2009 13:05:07 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 729D584529; Tue, 29 Sep 2009 15:05:07 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Ivan Voras References: <4AC141B0.4090705@delphij.net> <86ws3iexl3.fsf@ds4.des.no> Date: Tue, 29 Sep 2009 15:05:07 +0200 In-Reply-To: (Ivan Voras's message of "Tue, 29 Sep 2009 14:58:37 +0200") Message-ID: <86ske5gav0.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] Shutdown cooloff feature X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 13:05:08 -0000 Ivan Voras writes: > Dag-Erling Sm=C3=B8rgrav 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