From owner-freebsd-doc Sun Dec 30 18:22: 8 2001 Delivered-To: freebsd-doc@freebsd.org Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (pop-mu-8-2-dialup-99.freesurf.ch [194.230.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 1953F37B417 for ; Sun, 30 Dec 2001 18:21:11 -0800 (PST) Received: from beerswilling.netscum.dyndns.dk (dcf77-zeit.netscum.dyndns.dk [172.27.72.27]) by dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (8.11.6/8.11.6) with ESMTP id fBV23Vi00376 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL) for ; Mon, 31 Dec 2001 03:03:33 +0100 (CET) (envelope-from bounce@netscum.dyndns.dk) Received: (from root@localhost) by beerswilling.netscum.dyndns.dk (8.11.6/8.11.6) id fBV23Vb00375; Mon, 31 Dec 2001 03:03:31 +0100 (CET) (envelope-from bounce@netscum.dyndns.dk) Date: Mon, 31 Dec 2001 03:03:31 +0100 (CET) Message-Id: <200112310203.fBV23Vb00375@beerswilling.netscum.dyndns.dk> From: BOUWSMA Beery To: freebsd-doc@freebsd.org Subject: Suggestion for shutdown/halt man pages Organization: Men not wearing any pants that dont shave X-Hacked: via telnet to your port 25, what else? X-Internet-Access-Provided-By: TDC Suisse AG, Rumlang X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [replies sent directly to me may timeout and bounce, since I'm not online as often as I should be, but I'll check the list archives] Mojn The man pages for shutdown and halt hint at the -p option to power off the system, without giving all the needed details. In addition, the setting in /etc/rc.conf that can enable this functionality does not mention its magical powers for this. I suggest the following, more or less, based on the -stable man pages. halt/reboot/etc: -p The system will turn off the power if it can. This is of course likely to make reboot rather similar to halt. See shutdown(8) for more details. shutdown: (This probably needs to be reworded to reflect reality, rather than my warped vision thereof) -p The system is halted and the power is turned off (hardware sup- port required) at the specified time. In order for this to succeed, the hardware support must be complemented by enabling apm(8) (apm -e enable), which is easiest done at boot time by setting apm_enable="YES" in /etc/rc.conf. And then in /etc/defaults/rc.conf itself: apm_enable="NO" # Set to YES to enable APM BIOS functions (or NO). # This is needed to make `shutdown -p' work. Alternatively, if a single line is a goal: apm_enable="NO" # Enable APM BIOS functions (`shutdown -p' needs this) Of course, if what I've written is *not* true, then I'd like to know just what the reality really is... thanks barry bouwsma To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message