debian: Fix log rotation.
authorBen Pfaff <blp@nicira.com>
Thu, 22 Mar 2012 17:20:44 +0000 (10:20 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Mar 2012 17:34:16 +0000 (10:34 -0700)
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 <paul@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/openvswitch-switch.logrotate

index d72d230..6620a09 100644 (file)
@@ -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
 }