From 29be730ec77c6ed3ef964131cce72db632b29d1f Mon Sep 17 00:00:00 2001 From: Sander Eikelenboom Date: Thu, 11 Oct 2012 10:21:16 +0100 Subject: 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 Acked-by: Ian Campbell Committed-by: Ian Campbell --- tools/hotplug/Linux/init.d/xendomains | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/hotplug') 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 $? -- cgit v1.2.3