From owner-freebsd-hackers Sat May 20 1:33:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (Postfix) with SMTP id 20E6837B5F2; Sat, 20 May 2000 01:33:09 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1784 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Sat, 20 May 2000 10:32:11 +0200 (CEST) (Smail-3.2.0.104 1998-Nov-20 #1 built 1998-Dec-11) Received: by hcswork.hcs.de (Postfix, from userid 200) id 129E43F4; Sat, 20 May 2000 10:32:36 +0200 (METDST) Subject: Re: Post-shutdown hook for UPS shutdown? In-Reply-To: <20000519104048.A12491@shale.csir.co.za> from Jeremy Lea at "May 19, 0 10:40:48 am" To: reg@FreeBSD.ORG (Jeremy Lea) Date: Sat, 20 May 2000 10:32:36 +0200 (METDST) Cc: cns@psn.ie, hackers@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 915 Message-Id: <20000520083236.129E43F4@hcswork.hcs.de> From: hm@hcs.de (Hellmuth Michaelis) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From the keyboard of Jeremy Lea: > Just an idea... > > On Fri, May 19, 2000 at 05:00:26PM +0100, Cillian Sharkey wrote: > > Basically, is there currently any way to execute a post-shutdown script once > > the system has "halted" ? If not, is this feature possible to add ? > > Why not let the machine reboot, and check the power before anything else > in /etc/rc. This is what i once did for a dumb UPS in FreeBSD 2.x and it worked quite well. That package is still available on http://www.freebsd-support.de/misc with all the scripts and driver if you might want to have a look at it. hellmuth -- Hellmuth Michaelis Tel +49 40 55 97 47-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 55 97 47-77 Oldesloer Strasse 97-99 Mail hm [at] hcs.de D-22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message