Displaying 1 result from an estimated 1 matches for "nut_prestop".
2012 Jun 26
1
NUT MGE Pulsar Ellipse Premium 800: Changed NUT rw variables?
...;t fix it" dogma here. :)
I also had a nut server installed on the master, with the
/usr/local/etc/rc.d/nut script slightly modified to include a couple of
upsrw commands in order to power off ups and also to delay ups start-up:
gw[/root]# diff nut.mod nut.orig
34d33
< stop_precmd="nut_prestop"
41,50d39
< nut_prestop() {
< if (test -f /etc/killpower) then
< rm /etc/killpower
< sleep 5
< echo "Ordering UPS to delay-shutdown."
< ${nut_prefix}/bin/upsrw -s ups.delay.shutdown=80 -u user -p pass
mailfw at localhost
< ${n...