From owner-freebsd-hackers Fri May 19 10:41:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by hub.freebsd.org (Postfix) with ESMTP id 6B3C937BAAD for ; Fri, 19 May 2000 10:41:11 -0700 (PDT) (envelope-from reg@shale.csir.co.za) Received: from C992631-A.pinol1.sfba.home.com (C992631-A.pinol1.sfba.home.com [24.12.58.155]) by shale.csir.co.za (8.9.3/8.9.3) with ESMTP id TAA34870; Fri, 19 May 2000 19:40:56 +0200 (SAT) (envelope-from reg@shale.csir.co.za) Received: (from reg@localhost) by C992631-A.pinol1.sfba.home.com (8.9.3/8.9.3) id KAA12585; Fri, 19 May 2000 10:40:49 -0700 (PDT) (envelope-from reg) Date: Fri, 19 May 2000 10:40:48 -0700 From: Jeremy Lea To: Cillian Sharkey Cc: hackers@FreeBSD.ORG Subject: Re: Post-shutdown hook for UPS shutdown? Message-ID: <20000519104048.A12491@shale.csir.co.za> References: <20000519170026.A29241@psn.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000519170026.A29241@psn.ie>; from cns@psn.ie on Fri, May 19, 2000 at 05:00:26PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, 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. If it's bad, just signal the UPS, and let the system power down. The disks should still be unmounted, etc. Regards, -Jeremy -- FreeBSD - Because the best things in life are free... http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message