Displaying 2 results from an estimated 2 matches for "upsdrvctl_bin".
2013 Sep 15
1
[systemd-devel] Trying to turn off a UPS with home-made service unit
...of reducing the race window from 9
to 3 secs. Note that the same security can also be achieved by the
service unit by setting offdelay = 26 in ups.conf. My script is
#! /bin/bash
# Delayed turn off for the UPS unit.
# Needed for automatic system restart when wall power returns.
UPSDRVCTL_BIN=/usr/lib/ups/driver/upsdrvctl
$UPSDRVCTL_BIN shutdown
I tried adding
echo `date -I` `date +%T` "$0 calls $UPSDRVCTL_BIN shutdown" >> /var/log/UPS.log
to get a trace of the activity, but nothing is written in
/var/log/UPS.log.
Roger
2013 Dec 09
0
NUT 2.6.5 and openSUSE 13.1
...cute upsdrvctl shutdown to turn off the UPS unit. A
systemd script "ups-delayed.shutdown" in /usr/lib/systemd/system-shutdown
will do the job.
#! /bin/bash
# ups-delayed.shutdown Delayed turn off for the UPS unit.
# Needed for automatic system restart when wall power returns.
UPSDRVCTL_BIN=/usr/lib/ups/driver/upsdrvctl
$UPSDRVCTL_BIN shutdown
2. Automatic start for system unit upsd.service. In release 13.1 the
previous table of execution levels has been replaced by Yast => System =>
Services Manager but this does not include upsd. (This omission may be
corrected by 13.1...