xenserver: Use ovs-appctl to reopen log files
authorJustin Pettit <jpettit@nicira.com>
Fri, 18 Dec 2009 22:40:12 +0000 (14:40 -0800)
committerJustin Pettit <jpettit@nicira.com>
Mon, 21 Dec 2009 06:05:22 +0000 (22:05 -0800)
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

index 6366c67..d6f71af 100644 (file)
@@ -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
 }