From owner-freebsd-questions Fri Sep 27 7:24:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ECDE37B401 for ; Fri, 27 Sep 2002 07:24:39 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DEC343E6E for ; Fri, 27 Sep 2002 07:24:38 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g8REOZN40609; Fri, 27 Sep 2002 09:24:35 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020927092434.01026638@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 27 Sep 2002 09:24:34 -0500 To: Petri Riihikallio , questions@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: How to shut down cleanly by killing power In-Reply-To: References: <3.0.5.32.20020926155418.01026638@mail.sage-one.net> <3.0.5.32.20020926124221.01026638@mail.sage-one.net> <3.0.5.32.20020926103911.01026638@mail.sage-one.net> <3.0.5.32.20020926103911.01026638@mail.sage-one.net> <3.0.5.32.20020926124221.01026638@mail.sage-one.net> <3.0.5.32.20020926155418.01026638@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 05:11 PM 9.27.2002 +0300, Petri Riihikallio wrote: >>Have you looked at the script I'm referring to...?? It's the one provided >>by apccontrol as I recall which contains several "shutdown -h" commands >>which can be stopped and go back to business if the power returns because >>apcupsd checks to see if the power is back before it runs the shutdown part >>of the script. > >Yes, I have looked through the apcupsd package. Thank you for >pointing it out. It is very similar to NUT, but only for APC devices >(as the name implies :-) > >Have you looked at apcupsd-3.8.5/distributions/suse/halt.in ? It does >to SuSe what I would like to with FreeBSD. The README in >distributions directory recommends SuSe as the best implementation. > >>The "shutdown -p" is only run as the final decision by apcupsd to shut down >>the machine. > >What happens if power returns AFTER this final decision, but BEFORE >the system is actually shut down? The time frame can be over a minute. >-- >Cheers, >Petri > ===> What happens if power returns AFTER this final decision, but BEFORE the system is actually shut down? The time frame can be over a minute.<=== Interesting! This is the most I can recall being discussed about UPS for the past year. Glad we are doing it, but I still don't see the problem here. Once the script turns over to the "shutdown -p now", doesn't apcupsd exit (along with the other shutdowns) and stop monitoring..??? Or, am I missing something here (probably)? Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message