Fix rebooting for OpenVZ systems.
This commit is contained in:
@ -28,6 +28,7 @@ sync; sync
|
|||||||
# 1) we don't need (and by default can't) umount anything (VServer) or
|
# 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)
|
# 2) the host utils take care of all umounting stuff (OpenVZ)
|
||||||
if [ "${RC_SYS}" = "VSERVER" -o "${RC_SYS}" = "OPENVZ" ]; then
|
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
|
if [ -e @SYSCONFDIR@/init.d/"$1".sh ]; then
|
||||||
. @SYSCONFDIR@/init.d/"$1".sh
|
. @SYSCONFDIR@/init.d/"$1".sh
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user