xenserver: Avoid "rpm -i" warnings on XenServer 5.5.900.
[openvswitch] / xenserver / etc_init.d_vswitch
index abd594ecae08605f1c5f177ae35cf2f6d206752f..ee858fda36edbc126bebb28a62f218635b187793 100755 (executable)
@@ -286,6 +286,11 @@ function start {
     # ovs-vswitchd needs a few per bridge
     ulimit -n 4096
 
+    if [ ! -e "$VSWITCHD_CONF" ]; then
+        warning "$VSWITCHD_CONF does not exist"
+        action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF"
+    fi
+
     start_vswitchd
     start_brcompatd
     reload_vswitchd  # ensures ovs-vswitchd has fully read config file.