|
Line
Link Here
|
| 0 |
-- /etc/init.d/halt.sh.orig 2008-07-21 14:53:08.000000000 +0000 |
0 |
++ /etc/init.d/halt.sh 2008-07-21 14:55:10.000000000 +0000 |
|
Lines 29-35
Link Here
|
| 29 |
# 2) the host utils take care of all umounting stuff (OpenVZ) |
29 |
# 2) the host utils take care of all umounting stuff (OpenVZ) |
| 30 |
if [ "${RC_SYS}" = "VSERVER" -o "${RC_SYS}" = "OPENVZ" ]; then |
30 |
if [ "${RC_SYS}" = "VSERVER" -o "${RC_SYS}" = "OPENVZ" ]; then |
| 31 |
[ "${RC_SYS}" = "OPENVZ" -a "$1" = "reboot" ] && echo "" > /reboot |
31 |
[ "${RC_SYS}" = "OPENVZ" -a "$1" = "reboot" ] && echo "" > /reboot |
| 32 |
if [ -e /etc/init.d/"$1".sh ]; then |
32 |
if [[ -e /dev/initctl && -e /etc/init.d/"$1".sh ]] ; then |
| 33 |
. /etc/init.d/"$1".sh |
33 |
. /etc/init.d/"$1".sh |
| 34 |
else |
34 |
else |
| 35 |
exit 0 |
35 |
exit 0 |