From 930ce96d0854487a29c73ecca775f3ea2769a1ab Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 28 Jun 2012 16:43:22 -0300 Subject: Adding more battery parameters --- templates/apcupsd.conf.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/apcupsd.conf.erb b/templates/apcupsd.conf.erb index 03a9c08..6f96775 100644 --- a/templates/apcupsd.conf.erb +++ b/templates/apcupsd.conf.erb @@ -118,7 +118,7 @@ NOLOGINDIR /etc # ONBATTERYDELAY time. If you don't want to be annoyed by short # powerfailures, make sure that apccontrol powerout does nothing # i.e. comment out the wall. -ONBATTERYDELAY 6 +ONBATTERYDELAY <%= onbatterydelay %> # # Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so @@ -128,12 +128,12 @@ ONBATTERYDELAY 6 # If during a power failure, the remaining battery percentage # (as reported by the UPS) is below or equal to BATTERYLEVEL, # apcupsd will initiate a system shutdown. -BATTERYLEVEL 5 +BATTERYLEVEL <%= batterylevel %> # If during a power failure, the remaining runtime in minutes # (as calculated internally by the UPS) is below or equal to MINUTES, # apcupsd, will initiate a system shutdown. -MINUTES 3 +MINUTES <%= minutes %> # If during a power failure, the UPS has run on batteries for TIMEOUT # many seconds or longer, apcupsd will initiate a system shutdown. -- cgit v1.2.3