[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools: xencommons init script: Fix setting XENSTORED_ROOTDIR
# HG changeset patch # User Jim Fehlig <jfehlig@xxxxxxxx> # Date 1327599811 0 # Node ID e2722b24dc0962de37215320b05d1bb7c4c42864 # Parent c9abfdcae28d1924666e0bef44e62ce61100e8e8 tools: xencommons init script: Fix setting XENSTORED_ROOTDIR Due to a logic bug, XENSTORED_ROOTDIR was not being set to default value when zero length. Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r c9abfdcae28d -r e2722b24dc09 tools/hotplug/Linux/init.d/xencommons --- a/tools/hotplug/Linux/init.d/xencommons Thu Jan 26 17:38:05 2012 +0000 +++ b/tools/hotplug/Linux/init.d/xencommons Thu Jan 26 17:43:31 2012 +0000 @@ -61,7 +61,7 @@ if ! `xenstore-read -s / >/dev/null 2>&1` then - test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR="/var/lib/xenstored" + 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" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |