From owner-freebsd-questions@FreeBSD.ORG Tue Apr 20 11:39:10 2004 Return-Path: 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 8BC1D16A4CE for ; Tue, 20 Apr 2004 11:39:10 -0700 (PDT) Received: from m01.ca.astound.net (m01.ca.astound.net [64.85.239.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E26C43D46 for ; Tue, 20 Apr 2004 11:39:10 -0700 (PDT) (envelope-from rchopra@cal.berkeley.edu) Received: from cal.berkeley.edu (astound-64-85-251-8.ca.astound.net [64.85.251.8]) by m01.ca.astound.net (8.12.10/8.12.10) with ESMTP id i3KIcihT023851 for ; Tue, 20 Apr 2004 11:38:45 -0700 Message-ID: <40856E4C.7020300@cal.berkeley.edu> Date: Tue, 20 Apr 2004 11:39:08 -0700 From: Rishi Chopra User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Subject: apcupsd and 'shutdown -p' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 18:39:10 -0000 I'd like apcupsd to call 'shutdown -p' when halting the system. Currently the daemon works OK but allows for a race condition (e.g. battery is not dead but power is restored, leaving the system waiting for a key to be pressed)... Anyone have any ideas on how to accomplish this? -- Rishi Chopra http://www.ocf.berkeley.edu/~rchopra