From b5a450947412b9bca56bfff1b23c3a78d4417630 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Fri, 31 Oct 2008 13:43:33 -0700
Subject: [PATCH] Implement log rotation in openflow-switch.

---
 debian/openflow-switch.logrotate | 11 +++++++++++
 debian/rules                     |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 debian/openflow-switch.logrotate

diff --git a/debian/openflow-switch.logrotate b/debian/openflow-switch.logrotate
new file mode 100644
index 000000000..6506e3253
--- /dev/null
+++ b/debian/openflow-switch.logrotate
@@ -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
+}
diff --git a/debian/rules b/debian/rules
index cfcfbdb3f..2ef865b9d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -131,7 +131,7 @@ binary-common:
 	dh_installdocs
 	dh_installexamples
 	dh_installdebconf
-#	dh_installlogrotate
+	dh_installlogrotate
 	dh_installinit
 	dh_installman
 	dh_link
-- 
2.47.0