From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 73A851389F5 for ; Mon, 17 Nov 2014 01:06:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3029E0DBD; Mon, 17 Nov 2014 01:06:42 +0000 (UTC) Received: from uberouter3.guranga.net (unknown [81.19.48.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78B0EE0DA3 for ; Mon, 17 Nov 2014 01:06:40 +0000 (UTC) Received: from [192.168.151.15] (unknown [213.233.149.27]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by uberouter3.guranga.net (Postfix) with ESMTPSA id 98038224F for ; Mon, 17 Nov 2014 01:05:58 +0000 (GMT) Message-ID: <54694A19.10402@thegeezer.net> Date: Mon, 17 Nov 2014 01:06:33 +0000 From: thegeezer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] apcupsd to recycle power References: <54664F99.602@asyr.hopto.org> <546783B1.5050605@gmail.com> In-Reply-To: <546783B1.5050605@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 081870a1-13ec-43ad-a294-b78b7e213ac1 X-Archives-Hash: 6ed7b8db8468d5c77e586a9899c7956c On 15/11/2014 16:47, Daniel Frey wrote: > If the above fails (if the above does indeed fail, some troubleshooting > should happen to try to figure out why it doesn't work), KILLDELAY is > the parameter you likely seek, but it is dangerous. If you set this it > will wait x seconds after a shutdown was requested and forcibly shut > down the UPS power. > > However, in the even that power is restored between the UPS kill and the > time it actually turns off the mains will still not be cycled. But > theoretically this window should be pretty small. > > Dan > > it does seem as though this hits the issue - that when power fails, the ups triggers a shutdown, but the power doesn't fail hard enough to wind down the ups too, in which case the machine that is waiting for the "offbattery" event is fast asleep and misses the message. it's a shame the killpower command does nothing for you. the only way forward that i see would be to get a small device a la raspberry pi, and have that run apcupsd on it. you can then have that device run wake on lan if it detects the power is good, and trigger remote shutdown when not.