From owner-freebsd-hackers Sat Feb 7 08:19:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA26615 for hackers-outgoing; Sat, 7 Feb 1998 08:19:18 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from callisto.fortean.com (callisto.fortean.com [209.42.194.97]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA26608 for ; Sat, 7 Feb 1998 08:19:11 -0800 (PST) (envelope-from walter@fortean.com) Received: from localhost (walter@localhost) by callisto.fortean.com (8.8.8/8.8.5) with SMTP id LAA06129; Sat, 7 Feb 1998 11:19:02 -0500 (EST) X-Authentication-Warning: callisto.fortean.com: walter owned process doing -bs Date: Sat, 7 Feb 1998 11:19:02 -0500 (EST) From: "Bruce M. Walter" To: Mike Smith cc: hackers@FreeBSD.ORG Subject: Re: Soft Power Off at shutdown In-Reply-To: <19980207080842.17967.qmail@www06.netaddress.usa.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" On Sat, 7 Feb 1998, LESLIE ZHU wrote: > Is it possible to power off an ATX computer when doing a halt from > FreeBSD? Also is it possible to automatically shutdown FreeBSD when I > switch it off with the off-switch at the front? If it is allowed, where > is the source? Otherwise, can I take some interrupt to power off ATX > computer? This is the situation I am worried about with having just RB_POWEROFF as a flag to support all kinds of powerdown situations... If this machine is on a UPS and the power fails, the ATX/APM shutdown may be called before the UPS shutdown. If the line power is then restored, the machine will sit halted forever. Having a SHUTDOWN_POWEROFF queue is important to separate these calls from driver shutdown procedures that can't afford a poweroff while they are executing... Ordering the callout lists by priority is not a picture perfect solution to the above situation, but it certainly will work. Does anyone have a better idea? I for one would love to see a resolution soon. - Bruce ======================================================================== || Bruce M. Walter || 107 Timber Hollow Court #335 || || Senior Network Consultant || Chapel Hill, NC 27514 || || Fortean Technologies, Inc. || Tel: 919-967-4766 || || Information Technology Consultants || Fax: 919-967-4395 || ======================================================================== || BSD Unix -- It's not just a job, it's a way of life! || ========================================================================