From owner-freebsd-current@FreeBSD.ORG Sun Jan 3 08:58:49 2010 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 B28CD1065676 for ; Sun, 3 Jan 2010 08:58:49 +0000 (UTC) (envelope-from ari@ish.com.au) Received: from fish.ish.com.au (eth5921.nsw.adsl.internode.on.net [59.167.240.32]) by mx1.freebsd.org (Postfix) with ESMTP id 458308FC21 for ; Sun, 3 Jan 2010 08:58:48 +0000 (UTC) Received: from [10.29.62.2] (port=62799 helo=Aris-MacBook-Pro.local) by fish.ish.com.au with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NRMY8-0003Az-2C for freebsd-current@freebsd.org; Sun, 03 Jan 2010 20:15:00 +1100 Message-ID: <4B405C3D.7090501@ish.com.au> Date: Sun, 03 Jan 2010 19:58:37 +1100 From: Aristedes Maniatis User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20091229 Shredder/3.0.1pre MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4AC141B0.4090705@delphij.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 03 Jan 2010 08:58:49 -0000 On 3/01/10 11:28 AM, martinko wrote: > Robert Watson wrote: >> >> On Mon, 28 Sep 2009, Xin LI wrote: >> >>> I'm not sure if anyone would find this useful: >> >> Along similar lines, if we're looking at frequent admin errors: I've >> noticed an increasing number of people using "reboot" rather than >> "shutdown -r NOW" on the basis that on Linux (and perhaps other >> systems), reboot gives a clean application shutdown. I wonder if we >> should be making a similar change -- a lot of people may be risky data >> corruption/loss due to unclean application shutdown as a result of that >> misunderstanding. > > Sorry for a too late note, I'm just catching up, however .. > > IIRC Solaris for instance differentiate similarly to FreeBSD between > shutdown, reboot and others. So we're not alone. :) And I've always > considered it a good thing -- shutdown is clean/correct and higher level > then reboot & co. > > OT: I've noticed that PC-BSD has been shipping for ages with reboot > instead of shutdown. That is default in KDE and comes from Linux. > Adding another 'me too'. I've been working with various Unices for 15 years now and it has only been this thread that brought my attention to the evils of 'reboot'. I've always typed 'reboot' since I was worried that I'd accidentally type 'shutdown -R now' by mistake (or some similar typo) which would shutdown the box instead of reboot it, and then I'd need to spend the next 4 hours of my life traveling to a data centre. And 'reboot' was fewer letters to type. Why would an operating system have an unclean shutdown command at all? It would be more direct to just have a 'rand' command which writes random data to 5 random sectors on disk... :-) And surely if a process is stuck, it should be killed individually? Perhaps if this command is really needed it could be buried under "reboot -f" or something like that. For what it is worth, OSX does a clean graceful reboot with 'reboot'. Ari -- --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A