From: George Dunlap <George.Dunlap@eu.citrix.com>
To: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 1 of 3] xencommons: Kill xenstored when stopping xencommons
Date: Mon, 28 Jun 2010 14:10:42 +0100 [thread overview]
Message-ID: <4C289F52.1010006@eu.citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1006281408160.22638@kaball-desktop>
Seems like a comment to that effect in the script would be useful, then. :-)
What doesn't stop correctly? I've manually killed it and started it
again, and it seemed to work. Granted, there wasn't a whole lot stored
in it at the time...
-George
On 28/06/10 14:08, Stefano Stabellini wrote:
> xenstored doesn't stop correctly.
> There is no point in stopping xenstored if we are going to break the
> host.
>
> On Mon, 28 Jun 2010, George Dunlap wrote:
>> Signed-off-by: George Dunlap<george.dunlap@eu.citrix.com>
>>
>> diff -r bf64e1081333 -r e71645625934 tools/hotplug/Linux/init.d/xencommons
>> --- a/tools/hotplug/Linux/init.d/xencommons Fri Jun 25 16:05:20 2010 +0100
>> +++ b/tools/hotplug/Linux/init.d/xencommons Mon Jun 28 13:24:26 2010 +0100
>> @@ -22,6 +22,7 @@
>> test -f /etc/sysconfig/xencommons&& . /etc/sysconfig/xencommons
>>
>> XENCONSOLED_PIDFILE=/var/run/xenconsoled.pid
>> +XENSTORED_PIDFILE=/var/run/xenstored.pid
>> shopt -s extglob
>>
>> if test "x$1" = xstart&& \
>> @@ -42,7 +43,7 @@
>> test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR="/var/lib/xenstored"
>> rm -f "$XENSTORED_ROOTDIR"/tdb*&>/dev/null
>> test -z "$XENSTORED_TRACE" || XENSTORED_ARGS=" -T /var/log/xen/xenstored-trace.log"
>> - xenstored --pid-file=/var/run/xenstore.pid $XENSTORED_ARGS
>> + xenstored --pid-file=$XENSTORED_PIDFILE $XENSTORED_ARGS
>> xenstore-write "/local/domain/0/name" "Domain-0"
>> fi
>>
>> @@ -57,6 +58,12 @@
>> while kill -9 $pid>/dev/null 2>&1; do sleep 0.1; done
>> rm -f $XENCONSOLED_PIDFILE
>> fi
>> +
>> + if read 2>/dev/null<$XENSTORED_PIDFILE pid; then
>> + kill $pid
>> + while kill -9 $pid>/dev/null 2>&1; do sleep 0.1; done
>> + rm -f $XENSTORED_PIDFILE
>> + fi
>> }
>>
>> case "$1" in
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
next prev parent reply other threads:[~2010-06-28 13:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-28 12:58 [PATCH 0 of 3] xencommons init script improvements George Dunlap
2010-06-28 12:58 ` [PATCH 1 of 3] xencommons: Kill xenstored when stopping xencommons George Dunlap
2010-06-28 13:08 ` Stefano Stabellini
2010-06-28 13:10 ` George Dunlap [this message]
2010-06-28 13:23 ` Ian Campbell
2010-06-28 13:12 ` Ian Campbell
2010-06-28 13:51 ` Vincent Hanquez
2010-06-28 13:48 ` Ian Campbell
2010-06-28 13:56 ` Vincent Hanquez
2010-06-28 14:01 ` Ian Campbell
2010-06-28 14:23 ` Vincent Hanquez
2010-06-28 13:50 ` Keir Fraser
2010-06-28 14:16 ` Vincent Hanquez
2010-06-28 12:58 ` [PATCH 2 of 3] xencommons: Make init script more verbose George Dunlap
2010-06-28 16:09 ` Ian Jackson
2010-06-28 16:30 ` George Dunlap
2010-06-28 12:58 ` [PATCH 3 of 3] xencommons: Wait for xenstored to start before setting dom0 name George Dunlap
2010-06-28 16:01 ` Ian Jackson
2010-06-28 16:18 ` George Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C289F52.1010006@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.