1
0
Fork 0
home-stack-ansible/roles/nut-client/templates/upssched.conf

11 lines
398 B
Plaintext

CMDSCRIPT /etc/nut/upssched-cmd
PIPEFN /run/nut/upssched.pipe
LOCKFN /run/nut/upssched.lock
AT ONBATT * START-TIMER shutdown {{ nut_client.sched.on_bat }}
AT ONLINE * CANCEL-TIMER shutdown
AT LOWBATT * EXECUTE shutdown-critical
#AT COMMBAD * START-TIMER commbad {#{ nut_client.sched.comm_bad}#}
#AT COMMOK * CANCEL-TIMER commbad commok
#AT NOCOMM * EXECUTE commbad
#AT SHUTDOWN * EXECUTE powerdown