Implement log rotation in openflow-switch.
authorBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2008 20:43:33 +0000 (13:43 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2008 21:09:53 +0000 (14:09 -0700)
debian/openflow-switch.logrotate [new file with mode: 0644]
debian/rules

diff --git a/debian/openflow-switch.logrotate b/debian/openflow-switch.logrotate
new file mode 100644 (file)
index 0000000..6506e32
--- /dev/null
@@ -0,0 +1,11 @@
+/var/log/openflow/secchan.log {
+        daily
+        compress
+        create 640 root adm
+        delaycompress
+        missingok
+        rotate 30
+        postrotate
+                vlogconf --reopen /var/run/secchan.pid
+        endscript
+}
index cfcfbdb3f98274928a6f9a01cf704f0078744a2d..2ef865b9d495c25d3d03e36b15de39cd4a6a63e6 100755 (executable)
@@ -131,7 +131,7 @@ binary-common:
        dh_installdocs
        dh_installexamples
        dh_installdebconf
-#      dh_installlogrotate
+       dh_installlogrotate
        dh_installinit
        dh_installman
        dh_link