I searched for a way to power down my box at a predefined time including
switching off the power from the UPS.
"shutdown -h time" handles the shutdown of the system nicely, but to power
down the UPS some changes have to be done:
"try-powerdown" will only power down the UPS if it is running on battery at
The script /etc/init.d/apcupsd from apcupsd-3.14.6-8.1 contains a wrong path
for the apcupsd-lite binary, it should be
Additionally, the action performed in case of "powerdown)" has to be changed:
it should perform action "--power-off" instead of "--killpower".
"--killpower" only takes effect if the UPS is running on battery at this time.
Following patch can apply the changes:
--- apcupsd 2010-07-05 18:34:19.000000000 +0200
+++ apcupsd_my 2010-12-18 12:29:01.741526103 +0100
@@ -26,7 +26,7 @@
### END INIT INFO
test -x $APCUPSD -o -x $APCUPSD_LITE || exit 5
# Shell functions sourced from /etc/rc.status:
@@ -138,7 +138,7 @@
## Special command: Instruct UPS to shutdown.
echo -n "Instructing UPS to powerdown "
- $APCUPSD_LITE --killpower >/dev/null 2>&1 || rc_failed
+ $APCUPSD_LITE --power-off >/dev/null 2>&1 || rc_failed
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse+help(a)opensuse.org