From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 03:21:33 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 F1771106566B for ; Tue, 8 Feb 2011 03:21:33 +0000 (UTC) (envelope-from prvs=0013eb39ed=johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [64.57.183.53]) by mx1.freebsd.org (Postfix) with ESMTP id 513428FC0C for ; Tue, 8 Feb 2011 03:21:32 +0000 (UTC) Received: (qmail 47073 invoked from network); 8 Feb 2011 02:54:51 -0000 Received: from mail1.iecc.com (64.57.183.56) by mail1.iecc.com with QMQP; 8 Feb 2011 02:54:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:cc:mime-version:content-type:content-transfer-encoding:vbr-info; s=5e5b.4d50b07b.k1102; i=johnl@user.iecc.com; bh=H6plITNe+tvtbj76fc4wlGkQzhcWh1wfCexQ8d867bQ=; b=lnKImPQn935eqPj1LFc981hHLKnyw01/ky3MGMUr2ar1CSvXgrLWoYZvSZLr6c2aINxHhNfOsuI6LGOQdpfJ4+l4I2eT/SJNF/APnx6usY7lAo4nvVcQVgxw4MQImk3ufaihh2D6Uuu/NLqYivslm2+8lpaIxEysb4DTZBMRnFk= VBR-Info: md=iecc.com; mc=all; mv=dwl.spamhaus.org Date: 8 Feb 2011 02:54:51 -0000 Message-ID: <20110208025451.24154.qmail@joyce.lan> From: John Levine To: freebsd-questions@freebsd.org In-Reply-To: Organization: X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Cc: amvandemore@gmail.com 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 03:21:34 -0000 >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. Uh, no. shutdown or halt signals init, and init runs /etc/rc.shutdown which runs all the shutdown scripts. The only extra work that shutdown does is to blat lots of warnings onto the ttys. Read the man pages for shutdown, halt, and init if you believe otherwise. Regards, John Levine, johnl@iecc.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. http://jl.ly