diff options
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-x | rc.d/init.d/halt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 45e37505..2ebdbbe3 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -199,6 +199,11 @@ if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then fi fi +# Turn off UPS in powerfail situation +if [ -x /etc/apcupsd/apccontrol -a -f /etc/apcupsd/powerfail ]; then + /etc/apcupsd/apccontrol killpower +fi + # First, try kexec. If that fails, fall back to rebooting the old way. [ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null |