From: Cameron Dale Date: Sun, 22 Jun 2008 06:25:06 +0000 (-0700) Subject: Add a logrotate file that should work with the twistd log rotation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a8dd0af77ec15754ce692b423914f5b94ff9d25;p=quix0rs-apt-p2p.git Add a logrotate file that should work with the twistd log rotation. --- 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