From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 12:37:14 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 42C71106568B for ; Tue, 29 Sep 2009 12:37:14 +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 F1BED8FC0C for ; Tue, 29 Sep 2009 12:37:13 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 50B9D6D41C; Tue, 29 Sep 2009 12:37:12 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 2C99284529; Tue, 29 Sep 2009 14:37:12 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Ivan Voras References: <4AC141B0.4090705@delphij.net> Date: Tue, 29 Sep 2009 14:37:12 +0200 In-Reply-To: (Ivan Voras's message of "Tue, 29 Sep 2009 14:05:32 +0200") Message-ID: <86ws3iexl3.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 12:37:14 -0000 Ivan Voras 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. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no