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 cfcfbdb..2ef865b 100755 (executable)
@@ -131,7 +131,7 @@ binary-common:
        dh_installdocs
        dh_installexamples
        dh_installdebconf
-#      dh_installlogrotate
+       dh_installlogrotate
        dh_installinit
        dh_installman
        dh_link