X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=debian%2Flogrotate;h=d86c12b9583258e2abe218004e157dabd0325760;hp=d230a8b0e61fe4f01075ff0285613204f2aa99f2;hb=100f48795eee7d2996bff48871bf745af01811c7;hpb=71aad3f90226d3a65014c6fff4f2fc7ea37c3b58 diff --git a/debian/logrotate b/debian/logrotate index d230a8b0..d86c12b9 100644 --- a/debian/logrotate +++ b/debian/logrotate @@ -1,21 +1,17 @@ -/var/log/privoxy/logfile { +/var/log/privoxy/logfile /var/log/privoxy/jarfile /var/log/privoxy/errorfile { 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 which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d privoxy rotate > /dev/null + else + if [ -f /run/privoxy.pid ]; then + /etc/init.d/privoxy rotate > /dev/null + fi + fi endscript }