# {{ ansible_managed }} CMDSCRIPT /usr/local/bin/ups-sched-cmd.sh PIPEFN /run/nut/upssched.pipe LOCKFN /run/nut/upssched.lock # Mains is back: wait for it to hold for {{ ups_restore_stable_secs }}s # before powering TrueNAS back on, so we do not flap on unstable power. AT ONLINE * CANCEL-TIMER truenas-restore AT ONLINE * START-TIMER truenas-restore {{ ups_restore_stable_secs }} # Power dropped again while the restore timer was pending - stand down. AT ONBATT * CANCEL-TIMER truenas-restore