diff options
author | Roy Marples <roy@marples.name> | 2008-04-15 21:50:08 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-15 21:50:08 +0000 |
commit | b3310e8e10482a9d209e21676f0cf81ee4ec94a0 (patch) | |
tree | 11461298a3b820992e7232cea4ed5b881ae23ecb | |
parent | 29369c44c16e2cc4b162476022e400a913549758 (diff) |
Fix rebooting for OpenVZ systems.
-rw-r--r-- | init.d/halt.sh.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/halt.sh.in b/init.d/halt.sh.in index db29da8c..0b36ec43 100644 --- a/init.d/halt.sh.in +++ b/init.d/halt.sh.in @@ -28,6 +28,7 @@ sync; sync # 1) we don't need (and by default can't) umount anything (VServer) or # 2) the host utils take care of all umounting stuff (OpenVZ) if [ "${RC_SYS}" = "VSERVER" -o "${RC_SYS}" = "OPENVZ" ]; then + [ "${RC_SYS}" = "OPENVZ" -a "$1" = "reboot" ] && echo "" > /reboot if [ -e @SYSCONFDIR@/init.d/"$1".sh ]; then . @SYSCONFDIR@/init.d/"$1".sh else |