[Nut-upsuser] upsmon shutdown based on Time since power fail.
Jon Bendtsen
jbendtsen at laerdal.dk
Wed May 20 10:55:46 UTC 2009
On 20/05/2009, at 12.11, Richard Chapman wrote:
> For various reasons - I have been trying to get my Desktops and/or
> servers to shut-down a fixed time after a power fail - or better
> still a fixed time - or a low battery whichever comes first.
[cuuuuut]
> Is there another parameter somewhere - probably in upsmon - which
> would allow me to specify a shut-down after (say) 3 minutes running
> on battery regardless of battery status?
In the upsmon.conf file you use NOTIFYCMD and ONBATT to execute a
shutdown $time
Then you use a ONLINE to execute a -c to cancel a shutdown if the
power returns.
JonB
More information about the Nut-upsuser
mailing list