Add a logrotate file that should work with the twistd log rotation.
[quix0rs-apt-p2p.git] / debian / apt-p2p.logrotate
diff --git a/debian/apt-p2p.logrotate b/debian/apt-p2p.logrotate
new file mode 100644 (file)
index 0000000..46f359a
--- /dev/null
@@ -0,0 +1,14 @@
+/var/log/apt-p2p.log {
+        weekly
+        rotate 8
+        missingok
+        notifempty
+        nocompress
+        start 1
+        prerotate
+            rm -f /var/log/apt-p2p.log.[0-9][0-9]
+        endscript
+        postrotate
+            invoke-rc.d --quiet apt-p2p restart > /dev/null
+        endscript
+}