From 522ab21fbf92a53a5faeb6667209aa6995799532 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 10 Feb 2009 15:16:25 +0000 Subject: Only create the reboot file if rebooting. --- init.d/bootmisc.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init.d/bootmisc.in') diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index acdce99..5049c6e 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 -- cgit v1.2.3