From 254e1d794622353c20f440b51595bcd92be29f15 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 1 Oct 2009 09:52:27 -0700 Subject: [PATCH] xenserver: Clear stale configuration keys on boot, but not on later starts --- xenserver/etc_init.d_vswitch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 28a013ff0..249adeb07 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -268,7 +268,8 @@ function start { if [ ! -e "$VSWITCHD_CONF" ]; then warning "$VSWITCHD_CONF does not exist" action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF" - else + elif [ ! -e /var/run/vswitch.booted ]; then + touch /var/run/vswitch.booted /usr/bin/ovs-cfg-mod '-vANY:console:emer' -F "$VSWITCHD_CONF" \ '--del-match=bridge.*' \ '--del-match=port.*' \ -- 2.43.0