From: Ben Pfaff Date: Thu, 22 Mar 2012 17:20:44 +0000 (-0700) Subject: debian: Fix log rotation. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ece72d2415c62548751ba7276e5ca5e2dde11c04;p=openvswitch debian: Fix log rotation. Commit 24e81092a1 (debian: Bring Debian packaging in-line with new file locations) introduced an ambiguous "--t" option invoking ovs-appctl, so ovs-vswitchd and ovsdb-server were not reopening their log files following log rotation. This fixes the problem by correct the option name. Reported-by: Paul Ingram Signed-off-by: Ben Pfaff --- diff --git a/debian/openvswitch-switch.logrotate b/debian/openvswitch-switch.logrotate index d72d2308..6620a094 100644 --- a/debian/openvswitch-switch.logrotate +++ b/debian/openvswitch-switch.logrotate @@ -8,10 +8,10 @@ postrotate # Tell Open vSwitch daemons to reopen their log files if [ -e /var/run/openvswitch/ovs-vswitchd.pid ]; then - ovs-appctl --t ovs-vswitchd vlog/reopen + ovs-appctl -t ovs-vswitchd vlog/reopen fi if [ -e /var/run/openvswitch/ovsdb-server.pid ]; then - ovs-appctl --t ovsdb-server vlog/reopen + ovs-appctl -t ovsdb-server vlog/reopen fi endscript }