From owner-freebsd-questions Fri Oct 30 02:39:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA16112 for freebsd-questions-outgoing; Fri, 30 Oct 1998 02:39:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from bastuba.partitur.se (bastuba.partitur.se [193.219.246.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA16107 for ; Fri, 30 Oct 1998 02:39:53 -0800 (PST) (envelope-from kudo@partitur.se) Received: from partitur.se (tb303.partitur.se [193.219.246.230]) by bastuba.partitur.se (8.8.8/8.8.8) with ESMTP id LAA23309; Fri, 30 Oct 1998 11:39:41 +0100 (CET) (envelope-from kudo@partitur.se) Message-ID: <3639976D.2D317247@partitur.se> Date: Fri, 30 Oct 1998 11:39:41 +0100 From: Patrik Kudo Organization: Partitur Informationsteknik X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-BETA i386) X-Accept-Language: sv,en MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: shutdown and power-cut Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I've just found out that we're going to have a power-cut this night, so I'm going to make the servers here shutdown before that. That's easy. Now concern now is that the power might go up and down several times during the 4 hours the "power cut", and that will make the servers go up and down just as many times. Unfortunately I can't be here (with the servers) at the time of the powercut, so I'm trying to figure out a way to keep the servers shut down for the entire 4 hour period, even if the power comes back up for a while during that time. Is there any "standard" way to do this? If not, would it be a good idea to write a script that is run early in the startupphase that checks the current time, compares it with a given time and shutdowns the computer if the current time is less than the given time? Thanks, Patrik Kudo kudo@partitur.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message