diff options
author | Michal Hlavinka <mhlavink@redhat.com> | 2015-02-04 14:54:11 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2015-02-04 14:54:11 +0100 |
commit | bd0f78b5d3b27ee78047ae02144fb8e16f8ee6e8 (patch) | |
tree | 82d5927372b5f9649cd5f137e5f263c66b6372c3 /rc.d | |
parent | 26ba04be55d38d4bc1351078b3a028d129531f6f (diff) | |
download | initscripts-bd0f78b5d3b27ee78047ae02144fb8e16f8ee6e8.tar initscripts-bd0f78b5d3b27ee78047ae02144fb8e16f8ee6e8.tar.gz initscripts-bd0f78b5d3b27ee78047ae02144fb8e16f8ee6e8.tar.bz2 initscripts-bd0f78b5d3b27ee78047ae02144fb8e16f8ee6e8.tar.xz initscripts-bd0f78b5d3b27ee78047ae02144fb8e16f8ee6e8.zip |
halt: add delay after upsdrvctl shutdown
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/halt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 71303e9f..27b2ecbf 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -201,6 +201,8 @@ if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then fi if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then /sbin/upsdrvctl shutdown + sleep 120 + /sbin/reboot --force fi fi |