From owner-freebsd-questions Thu Sep 26 8:39:19 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 2BF9A37B404; Thu, 26 Sep 2002 08:39:16 -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 19AF143E77; Thu, 26 Sep 2002 08:39:15 -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 g8QFdBN25733; Thu, 26 Sep 2002 10:39:12 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020926103911.01026638@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 26 Sep 2002 10:39:11 -0500 To: Petri Riihikallio , freebsd-questions@FreeBSD.ORG, DougB@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: How to shut down cleanly by killing power In-Reply-To: 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:02 PM 9.26.2002 +0300, Petri Riihikallio wrote: >Hello > >A couple of days ago I sent a message asking how to shut down a >FreeBSD system when I KNOW the power will be off after the next >script command. > >Nobody has commented yet. > >Am I the only one using an UPS with FreeBSD? > No, you are not the only one using UPS, but in my case, I don't use NUT and don't quite understand the problem you have with the shutdown. My scripts use shutdown -p just fine (rather than shutdown -h). It will only use that when it reaches the final designated time to do so. If power returns, then it stops the countdown just flawlessly and returns to normal operations. It works on all of the FBSD machines and those running Windoze desktops. Some are Masters (those are FBSD) and some are slaves (FBSD & WINs). Some share the same APC and some do not. The ones that do not are attached to dumb UPS backups, but are still told what to do by the APC master machines.... i.e., shutdown or continue. So, I have not jumped into this because it is complicated enough without trying to discuss accross different daemons.... 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