Add a logrotate file that should work with the twistd log rotation.
authorCameron Dale <camrdale@gmail.com>
Sun, 22 Jun 2008 06:25:06 +0000 (23:25 -0700)
committerCameron Dale <camrdale@gmail.com>
Sun, 22 Jun 2008 06:25:06 +0000 (23:25 -0700)
debian/apt-p2p.logrotate [new file with mode: 0644]
debian/rules

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
+}
index a019ee3b074b27fb00fe0742fefe1aaf51230358..1588eb377133b9b6a053106f0f72eb52366a5dfc 100755 (executable)
@@ -45,6 +45,7 @@ binary-indep: install
        dh_testroot
        dh_installdocs
        dh_installman
+       dh_installlogrotate
        
        # Remove the .py from the end of each of these
        mv debian/apt-p2p/usr/sbin/apt-p2p.py debian/apt-p2p/usr/sbin/apt-p2p