aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hotplug
diff options
context:
space:
mode:
authorSander Eikelenboom <linux@eikelenboom.it>2012-10-11 10:21:16 +0100
committerSander Eikelenboom <linux@eikelenboom.it>2012-10-11 10:21:16 +0100
commit29be730ec77c6ed3ef964131cce72db632b29d1f (patch)
treee137c3f236e87b2e10215bde6041cd0c5d1183d0 /tools/hotplug
parent04983468634169adc45060d952d69ffde9a25dd1 (diff)
downloadxen-29be730ec77c6ed3ef964131cce72db632b29d1f.tar.gz
xen-29be730ec77c6ed3ef964131cce72db632b29d1f.tar.bz2
xen-29be730ec77c6ed3ef964131cce72db632b29d1f.zip
init scripts: xendomains correct order of options for shutdown command
Options for the shutdown command that are supplied behind the domain id are ignored. In case of the default xendomains init script this means that it will not wait for the domains to be actually shutdown. Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/hotplug')
-rw-r--r--tools/hotplug/Linux/init.d/xendomains2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hotplug/Linux/init.d/xendomains b/tools/hotplug/Linux/init.d/xendomains
index c033581253..90949ed43e 100644
--- a/tools/hotplug/Linux/init.d/xendomains
+++ b/tools/hotplug/Linux/init.d/xendomains
@@ -438,7 +438,7 @@ stop()
echo -n "(shut)"
watchdog_xencmd shutdown &
WDOG_PID=$!
- XMR=`$CMD shutdown $id $XENDOMAINS_SHUTDOWN 2>&1 1>/dev/null`
+ XMR=`$CMD shutdown $XENDOMAINS_SHUTDOWN $id 2>&1 1>/dev/null`
if test $? -ne 0; then
echo -e "\nAn error occurred while shutting down domain:\n$XMR\n"
rc_failed $?