From 5a8dd0af77ec15754ce692b423914f5b94ff9d25 Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Sat, 21 Jun 2008 23:25:06 -0700 Subject: [PATCH] Add a logrotate file that should work with the twistd log rotation. --- debian/apt-p2p.logrotate | 14 ++++++++++++++ debian/rules | 1 + 2 files changed, 15 insertions(+) create mode 100644 debian/apt-p2p.logrotate diff --git a/debian/apt-p2p.logrotate b/debian/apt-p2p.logrotate new file mode 100644 index 0000000..46f359a --- /dev/null +++ b/debian/apt-p2p.logrotate @@ -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 +} diff --git a/debian/rules b/debian/rules index a019ee3..1588eb3 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.39.5