init scripts: xendomains correct order of options for shutdown command
authorSander Eikelenboom <linux@eikelenboom.it>
Thu, 11 Oct 2012 09:21:16 +0000 (10:21 +0100)
committerSander Eikelenboom <linux@eikelenboom.it>
Thu, 11 Oct 2012 09:21:16 +0000 (10:21 +0100)
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>
tools/hotplug/Linux/init.d/xendomains

index c033581253288ce4535f7bc9bf71d0690ba47943..90949ed43e45f112b95dec0bebe1576055c808c9 100644 (file)
@@ -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 $?