tools: don't remove tdb data base file before starting xenstored
authorJuergen Gross <jgross@suse.com>
Tue, 10 Jan 2017 16:13:39 +0000 (17:13 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 13 Jan 2017 12:08:12 +0000 (12:08 +0000)
As xenstored now is always starting with an empty tdb data base there
is no need any longer to remove the file before starting xenstored.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/hotplug/Linux/launch-xenstore.in

index 01193be34990f92780492a99f5131821b0a5985a..991dec8d259d5ca8365a56011dbdc75711b2f90e 100644 (file)
@@ -54,7 +54,6 @@ test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons && . @CONFIG_DIR@/@CONFIG_LEAF
 
 [ "$XENSTORETYPE" = "daemon" ] && {
        [ -z "$XENSTORED_ROOTDIR" ] && XENSTORED_ROOTDIR="@XEN_LIB_STORED@"
-       /bin/rm -f $XENSTORED_ROOTDIR/tdb* &>/dev/null
        [ -z "$XENSTORED_TRACE" ] || XENSTORED_ARGS="$XENSTORED_ARGS -T @XEN_LOG_DIR@/xenstored-trace.log"
        [ -z "$XENSTORED" ] && XENSTORED=@XENSTORED@
        [ -x "$XENSTORED" ] || {