From: Roland Rosenfeld Date: Sat, 6 Dec 2003 22:25:27 +0000 (+0000) Subject: Merge rotation of logfile and jarfile X-Git-Tag: v_3_0_3~45 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=6e0ebc4f84a64f09ceff4277e7d753affddf5adb;p=privoxy.git Merge rotation of logfile and jarfile --- diff --git a/debian/logrotate b/debian/logrotate index d230a8b0..a0e7c612 100644 --- a/debian/logrotate +++ b/debian/logrotate @@ -1,21 +1,14 @@ -/var/log/privoxy/logfile { +/var/log/privoxy/logfile /var/log/privoxy/jarfile { create 0640 privoxy adm missingok weekly rotate 7 compress + sharedscripts postrotate - touch /etc/privoxy/config - endscript -} - -/var/log/privoxy/jarfile { - create 0640 privoxy adm - missingok - weekly - rotate 7 - compress - postrotate - touch /etc/privoxy/config + if [ -f /var/run/privoxy.pid ] + then + kill -HUP `cat /var/run/privoxy.pid` > /dev/null + fi endscript }