aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-02-10 15:16:25 +0000
committerRoy Marples <roy@marples.name>2009-02-10 15:16:25 +0000
commit522ab21fbf92a53a5faeb6667209aa6995799532 (patch)
tree20e66a629e256a3f2ca15df0c2d6f2bc88fc0acb
parent3d7b56f2e20e28aa22b1c09e4318ae0420485071 (diff)
Only create the reboot file if rebooting.
-rw-r--r--init.d/bootmisc.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index acdce994..5049c6e7 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.in
@@ -146,7 +146,9 @@ stop()
# Write a halt record if we're shutting down
if [ "${RC_RUNLEVEL}" = shutdown ]; then
[ "${RC_UNAME}" = Linux ] && halt -w
- [ "${RC_SYS}" = OPENVZ ] && printf "" >/reboot
+ if [ "${RC_SYS}" = OPENVZ ]; then
+ yesno ${RC_REBOOT} && printf "" >/reboot
+ fi
fi
return 0