From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 01:46:41 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DC601065675 for ; Tue, 8 Feb 2011 01:46:41 +0000 (UTC) (envelope-from Dave.Robison@fisglobal.com) Received: from mailoutltc.fnis.com (mailoutltc.fnis.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 442788FC16 for ; Tue, 8 Feb 2011 01:46:40 +0000 (UTC) Received: from SBHFISLREXT03 ([10.132.254.62]) by SCSFISLTC01 (8.14.3/8.14.3) with ESMTP id p181kCY5012841 for ; Mon, 7 Feb 2011 19:46:12 -0600 Received: from sbhfisltcgw02.FNFIS.COM (Not Verified[10.132.248.122]) by SBHFISLREXT03 with MailMarshal (v6, 5, 4, 7535) id ; Mon, 07 Feb 2011 19:46:14 -0600 Received: from SBHFISLTCGW07.FNFIS.COM ([10.132.248.135]) by sbhfisltcgw02.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Mon, 7 Feb 2011 19:46:12 -0600 Received: from lefty.vicor.com ([10.132.254.135]) by SBHFISLTCGW07.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 7 Feb 2011 19:46:11 -0600 Message-ID: <4D50A063.6090406@fisglobal.com> Date: Mon, 07 Feb 2011 17:46:11 -0800 From: "Robison, Dave" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20101222 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4D508917.3000202@alokat.org> <1297124530.2564.5.camel@dt.vicor.com> <1297127587.2564.8.camel@dt.vicor.com> <1297129130.2564.10.camel@dt.vicor.com> In-Reply-To: <1297129130.2564.10.camel@dt.vicor.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Feb 2011 01:46:11.0772 (UTC) FILETIME=[F6C67FC0:01CBC731] Subject: Re: shutdown computer after the halt command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: david.robison@fisglobal.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 01:46:41 -0000 Allow me to split hairs here. I was taught "sync;sync;sync;halt". One for the father, one for the son, one for the holy spirit. This, of course, in the days when I/O was slow enough that sync didn't have time to finish before the halt, so doing it three times ensured your file system shut down cleanly. Dave On 02/07/11 17:38, Devin Teske wrote: > On Mon, 2011-02-07 at 19:26 -0600, Adam Vande More wrote: >> On Mon, Feb 7, 2011 at 7:13 PM, Devin Teske wrote: >> >> There's no technical reason to avoid using halt directly other >> than the >> fact that shutdown sends a message to connected users while >> halt does >> not. >> -- >> Devin >> >> P.S. I welcome the rebuttle as a learning experience if the >> above is not >> 100% accurate and true (but be-warned... I went around the >> office >> polling _really_ old UNIX hands before making the above >> statement). >> >> >> I used to believe that until I was shown I was wrong. The easiest way >> to see you're wrong is to drop to ttyv0 then do one of each like a >> reboot then a shutdown -r now. In the latter case, you'll >> notice /etc/rc.d/ and /usr/local/etc/rc.d/ stop scripts being >> processed but not so in the former. In both types of shutdowns, >> everything *should* exit cleanly but processes are terminated with >> different signals and certain types of applications really need the >> full rc stop script to end cleanly like HAST and CARP for example. >> >> shutdown -r/p is a really good habit to form. >> >> FWIW, someone also stated reboot on Linux behaves like shutdown -r now >> so that I sure contributes to the confusion. > > Thank you very much for the explanation! > > Yes, I (we) had completely forgotten about the shutdown scripts. > > Of course, many of us still remember the days when it standard fare to > "sync; sync; halt". > -- > Devin > > > >> >> >> -- >> Adam Vande More > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Dave Robison Sales Solution Architect II FIS Banking Solutions 510/621-2089 (w) 530/518-5194 (c) 510/621-2020 (f) daver@vicor.com david.robison@fisglobal.com _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________