From b3310e8e10482a9d209e21676f0cf81ee4ec94a0 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 15 Apr 2008 21:50:08 +0000 Subject: [PATCH] Fix rebooting for OpenVZ systems. --- init.d/halt.sh.in | 1 + 1 file changed, 1 insertion(+) 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