From: Ian Campbell Subject: Re: [PATCH 2/3] init scripts: xendomains correct order of options for shutdown command Date: Thu, 11 Oct 2012 10:21:28 +0100 Message-ID: <1349947288.14806.27.camel@zakaz.uk.xensource.com> References: <1349943909-2495-1-git-send-email-linux@eikelenboom.it> <1349943909-2495-3-git-send-email-linux@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1349943909-2495-3-git-send-email-linux@eikelenboom.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "linux@eikelenboom.it" Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-10-11 at 09:25 +0100, linux@eikelenboom.it wrote: > From: Sander Eikelenboom > > 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 and applied, thanks. > --- > tools/hotplug/Linux/init.d/xendomains | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tools/hotplug/Linux/init.d/xendomains b/tools/hotplug/Linux/init.d/xendomains > index c363208..00e5944 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 $?