From owner-freebsd-bugs Mon Aug 10 22:10:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA07885 for freebsd-bugs-outgoing; Mon, 10 Aug 1998 22:10:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA07854 for ; Mon, 10 Aug 1998 22:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA02692; Mon, 10 Aug 1998 22:10:01 -0700 (PDT) Date: Mon, 10 Aug 1998 22:10:01 -0700 (PDT) Message-Id: <199808110510.WAA02692@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Neal Horman Subject: Re: kern/7546: [PATCH] [STABLE ?]shutdown -p - system power off implementation Reply-To: Neal Horman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/7546; it has been noted by GNATS. From: Neal Horman To: freebsd-gnats-submit@freebsd.org, neal@wanlink.com Cc: Subject: Re: kern/7546: [PATCH] [STABLE ?]shutdown -p - system power off implementation Date: Mon, 10 Aug 1998 22:14:43 -0700 Upon examination of kern_shutdown.c and apm.c presently in CVS, I do indeed find that code that apparently deals with system power down does exist. However, please consider the following points carefully before discounting the submitted patches. What doesn't exist is the code that will allow the user to select a "halt" vs. a "power down" condition. ie. kern_shutdown.c ignores the "howto & RB_POWEROFF" flag in this respect. At first, this may seem trivial, but consider that in server environments, when a UPS driven system is shutdown with "shutdown -h", or "halt" because of impending power outage conditions, and the kernel tells APM to turn the power off (using the code presently in CVS), upon power restoral, the system may not (this I think should be read as "probably won't") re-power without human intervention, which may not be acceptable. Using the patches that I've put together, the problem of the system not re-powering after line voltage restoral can be avoided by issuing a "shutdown -h", or "halt", to bring the system down, but not power off, vs. issuing a "shutdown -p", or "halt -p" to bring the system down, and then power off. Also, in some circumstances, it may be totaly inappropriate for a system to be able to power it's self off, and as such, the patches I've submitted will allow for the APM based power-down code to be a configurable kernel option. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message