From owner-freebsd-questions Fri Sep 27 9:33:27 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 8D59137B401 for ; Fri, 27 Sep 2002 09:33:26 -0700 (PDT) Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 2E36443E3B for ; Fri, 27 Sep 2002 09:33:24 -0700 (PDT) (envelope-from drs@rucus.ru.ac.za) Received: (qmail 48835 invoked from network); 27 Sep 2002 16:33:21 -0000 Received: from bashir.dsl.ru.ac.za (146.231.113.19) by server.rucus.ru.ac.za with SMTP; 27 Sep 2002 16:33:21 -0000 Received: (qmail 663 invoked by uid 1001); 27 Sep 2002 16:33:21 -0000 Date: Fri, 27 Sep 2002 18:33:21 +0200 From: David =?iso-8859-1?Q?Sieb=F6rger?= To: Petri Riihikallio Cc: questions@FreeBSD.ORG Subject: Re: How to shut down cleanly by killing power Message-ID: <20020927163321.GA521@rucus.ru.ac.za> References: <20020927151424.GA430@rucus.ru.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4i 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 On Fri 2002-09-27 (19:03), Petri Riihikallio wrote: > You have an APC "smart" model, I have a dumb one. The smart ones have > a "shutdown grace period". That is, they don't kill the power > immediately after the -k command, but after a delay. That -d 3 should > make it 3 seconds, which is kind of short. The default delay is 20 > seconds. If there are no stuck processes, it should be OK. You could > increase the delay to 60 seconds to be sure that the system is > lifeless. Correction: the -d switch sets how long newapc will hang around waiting for; the length of time that the UPS waits before shutting down is set using upsct2. I've used -d 3 so that newapc exits quickly, the shutdown completes, and the PC powers down. > You shouldn't have any fear of the deadlock, since the smart APC > UPSes obey the killpower command even if the power returns. It is > just the dumb ones to worry about. Hmm... then I'm afraid I'm out of ideas. -- David Siebörger drs@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message