summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-15 21:50:08 +0000
committerRoy Marples <roy@marples.name>2008-04-15 21:50:08 +0000
commitb3310e8e10482a9d209e21676f0cf81ee4ec94a0 (patch)
tree11461298a3b820992e7232cea4ed5b881ae23ecb /init.d
parent29369c44c16e2cc4b162476022e400a913549758 (diff)
downloadopenrc-b3310e8e10482a9d209e21676f0cf81ee4ec94a0.tar.gz
openrc-b3310e8e10482a9d209e21676f0cf81ee4ec94a0.tar.bz2
openrc-b3310e8e10482a9d209e21676f0cf81ee4ec94a0.tar.xz
Fix rebooting for OpenVZ systems.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/halt.sh.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.d/halt.sh.in b/init.d/halt.sh.in
index db29da8..0b36ec4 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