Suggested by Ian Campbell.
fi
}
+function reload_brcompatd {
+ if [ -f "$BRCOMPATD_PIDFILE" ]; then
+ "$appctl" \
+ --target=ovs-brcompatd.$(cat "$BRCOMPATD_PIDFILE").ctl --reopen
+ fi
+}
+
function start_vswitchd {
local syslog_opt="-vANY:SYSLOG:${VSWITCHD_SYSLOG_LOGLEVEL}"
local logfile_file_opt=""
;;
reload)
reload_vswitchd
+ reload_brcompatd
;;
strace-vswitchd)
shift
# notice and this notice are preserved. This file is offered as-is,
# without warranty of any kind.
-/var/log/ovs-vswitchd.log {
+/var/log/ovs-vswitchd.log /var/log/ovs-brcompatd.log {
sharedscripts
postrotate
- # Send sighup to vswitch which will cause it to reopen its log files.
- /sbin/service vswitch reload
+ # Tell ovs-vswitchd and ovs-brcompatd to reopen their log files
+ /sbin/service vswitch reload
endscript
}