From owner-freebsd-current@FreeBSD.ORG Tue Sep 29 12:58:57 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 B20A4106566C for ; Tue, 29 Sep 2009 12:58:57 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5788FC08 for ; Tue, 29 Sep 2009 12:58:57 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1MscIC-0001UW-Fb for freebsd-current@freebsd.org; Tue, 29 Sep 2009 14:58:56 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2009 14:58:56 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2009 14:58:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Tue, 29 Sep 2009 14:58:37 +0200 Lines: 19 Message-ID: References: <4AC141B0.4090705@delphij.net> <86ws3iexl3.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.23 (X11/20090928) In-Reply-To: <86ws3iexl3.fsf@ds4.des.no> Sender: news 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:58:57 -0000 Dag-Erling Smørgrav wrote: > 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. Is this distinction between them useful (other than possibly speed of shutdown/reboot)?