From owner-freebsd-hackers Fri Feb 6 12:38:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA22400 for hackers-outgoing; Fri, 6 Feb 1998 12:38:25 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA22274 for ; Fri, 6 Feb 1998 12:38:06 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id GAA00739; Sat, 7 Feb 1998 06:57:57 -0800 (PST) Message-Id: <199802071457.GAA00739@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: John Fieber cc: Calin Andrian , freebsd-hackers@FreeBSD.ORG Subject: Re: Powering off the system/UPS In-reply-to: Your message of "Fri, 06 Feb 1998 09:25:53 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Feb 1998 06:57:56 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" > > Maybe I missed it in the thread, but why it is a Good Thing to > put UPS support in the kernel as opposed to a purely user mode > daemon that monitors the UPS and does the Right Thing, like > shutdown(8), when things get to a critical state? There are a couple of cases where this is important: - Many UPS systems have a command that says "power off, and don't come back until the line is OK". Regardless of the line state, they *will* power off first, which guarantees that you get a hard reset. Some, but *not*all* of these provide a delay in the command, but you can't tell how long a shutdown is going to take. If you leave off commanding the cycle until after shutdown, it doesn't matter. - Other UPS systems are stupid, and with those the correct course to take is to reboot, and wait early in the boot phase (well before filesystems are mounted) until the line power comes back. To do this, you need a driver. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\