X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fetc_init.d_vswitch;h=92be421f1499ba52f747df15e4d7e4865e6c9941;hb=c2abdb7ec64ddf295bf92b4713e755dda1bf2f31;hp=83d84ec2a9b960102dd06d94d6e0d2d0924f1f3d;hpb=612f6d49c5137ecaf407a5f8cc0a1e5ba4b4bca7;p=openvswitch diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch index 83d84ec2..92be421f 100755 --- a/xenserver/etc_init.d_vswitch +++ b/xenserver/etc_init.d_vswitch @@ -33,7 +33,7 @@ FORCE_COREFILES="${FORCE_COREFILES:-y}" VSWITCHD_CONF="${VSWITCHD_CONF:-/etc/ovs-vswitchd.conf}" VSWITCHD_PIDFILE="${VSWITCHD_PIDFILE:-/var/run/ovs-vswitchd.pid}" VSWITCHD_RUN_DIR="${VSWITCHD_RUN_DIR:-/var/xen/vswitch}" -VSWITCHD_PRIORITY="${VSWITCHD_PRIORITY:--5}" +VSWITCHD_PRIORITY="${VSWITCHD_PRIORITY:--10}" VSWITCHD_LOGFILE="${VSWITCHD_LOGFILE:-/var/log/ovs-vswitchd.log}" VSWITCHD_FILE_LOGLEVEL="${VSWITCHD_FILE_LOGLEVEL:-}" VSWITCHD_SYSLOG_LOGLEVEL="${VSWITCHD_SYSLOG_LOGLEVEL:-WARN}" @@ -46,7 +46,7 @@ VSWITCHD_VALGRIND_OPT="${VSWITCHD_VALGRIND_OPT:-}" # Config variables specific to ovs-brcompatd BRCOMPATD_PIDFILE="${BRCOMPATD_PIDFILE:-/var/run/ovs-brcompatd.pid}" BRCOMPATD_RUN_DIR="${BRCOMPATD_RUN_DIR:-/var/xen/vswitch}" -BRCOMPATD_PRIORITY="${BRCOMPATD_PRIORITY:--5}" +BRCOMPATD_PRIORITY="${BRCOMPATD_PRIORITY:--10}" BRCOMPATD_LOGFILE="${BRCOMPATD_LOGFILE:-/var/log/ovs-brcompatd.log}" BRCOMPATD_FILE_LOGLEVEL="${BRCOMPATD_FILE_LOGLEVEL:-}" BRCOMPATD_SYSLOG_LOGLEVEL="${BRCOMPATD_SYSLOG_LOGLEVEL:-INFO}" @@ -258,6 +258,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.