Displaying 1 result from an estimated 1 matches for "nut_restart_udev".
2015 Jun 30
1
nut UPS kill inverter: offdelay ignored
...and /root directories are on
different partitions, so I added these commands after turning off swap and before unmounting the
local file systems, like this:
# rc.6
...
# Turn off swap:
echo "Turning off swap."
/sbin/swapoff -a
/bin/sync
# Turn off UPS's power
if [ -x /usr/libexec/nut/nut_restart_udev ]; then
?. /usr/libexec/nut/nut_restart_udev
fi
if [ -x /usr/libexec/nut/nut_kill_inverter ]; then
. /usr/libexec/nut/nut_kill_inverter
fi
echo "Unmounting local file systems."
/bin/umount -v -a -t no,proc,sysfs
...
I also set in the ups.conf file that the UPS should be killed 3 minutes...