From 7f1bfcfe29a4dd09afbcef22dbb66da3e1d979d9 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 18 Dec 2009 14:40:12 -0800 Subject: [PATCH] xenserver: Use ovs-appctl to reopen log files During the changes to use the configuration database the "reload" command was removed from the init script. In addition to reloading the configuration file, binaries also reopened their log files, which is the behavior the logrotate configuration expected. This change makes the logrotate configuration no longer user the "reload" command. --- xenserver/etc_logrotate.d_vswitch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xenserver/etc_logrotate.d_vswitch b/xenserver/etc_logrotate.d_vswitch index 6366c675..d6f71afb 100644 --- a/xenserver/etc_logrotate.d_vswitch +++ b/xenserver/etc_logrotate.d_vswitch @@ -9,6 +9,8 @@ sharedscripts postrotate # Tell ovs-vswitchd and ovs-brcompatd to reopen their log files - /sbin/service vswitch reload + /usr/bin/ovs-appctl -t ovs-vswitchd vlog/reopen + /usr/bin/ovs-appctl -t ovs-brcompatd vlog/reopen + /usr/bin/ovs-appctl -t ovsdb-server vlog/reopen endscript } -- 2.30.2