From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 01:50:34 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 06EE4106564A for ; Tue, 8 Feb 2011 01:50:34 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8B0628FC08 for ; Tue, 8 Feb 2011 01:50:33 +0000 (UTC) Received: by fxm16 with SMTP id 16so5799387fxm.13 for ; Mon, 07 Feb 2011 17:50:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Rke6N2VBWw9grw0+L5tjMOBOqfdgj95yU7cBfnDZs48=; b=QFpB7keYOQwN2vTIzq2xR7X3YJiq1TbNpRQFhR8tdqheRcFsddAUIq9UkwTXX4Week /f8Jp9xtoMgitonYYFmAjvIWiI6+Nbs9SkdpWEPXT3ikERi6NvQ0WpLRDXRpua3Ei3Ju 3sOcSKbgEgUE/z6M//t5v3+hrc+HhyaYyQtqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=F1RIPFKbK4pr2gOfNawQIdOeGdEXYGRTiYabi690mpRVn+NumMy/I8KI1PgHFqwGml ks+qY4XBY2GRJD1l/nxzYwmmdB8pqbgaXSYGiEuXBeYv1g10x1TAVKnila9f1TbVfpB3 tpkjm1ch7ZaPN3VqSVLyOQ7OeV0CUKwdV3ds4= MIME-Version: 1.0 Received: by 10.223.116.1 with SMTP id k1mr5395123faq.51.1297128377419; Mon, 07 Feb 2011 17:26:17 -0800 (PST) Received: by 10.223.114.4 with HTTP; Mon, 7 Feb 2011 17:26:17 -0800 (PST) In-Reply-To: <1297127587.2564.8.camel@dt.vicor.com> References: <4D508917.3000202@alokat.org> <1297124530.2564.5.camel@dt.vicor.com> <1297127587.2564.8.camel@dt.vicor.com> Date: Mon, 7 Feb 2011 19:26:17 -0600 Message-ID: From: Adam Vande More To: Devin Teske Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Eitan Adler , Alokat , freebsd-questions@freebsd.org Subject: Re: shutdown computer after the halt command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 01:50:34 -0000 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. -- Adam Vande More