X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=debian%2Flogrotate;h=deddd2621fa9ecaeb2b8f893d78c1ace6e443ebf;hb=619b0fb7604d165395322ba4f5704e34c1fdb9d1;hp=a110e9329fccf5499256b7814565fa98bba2acd3;hpb=72081f829de368392d04076728f8c991178c0080;p=privoxy.git diff --git a/debian/logrotate b/debian/logrotate index a110e932..deddd262 100644 --- a/debian/logrotate +++ b/debian/logrotate @@ -6,11 +6,11 @@ compress sharedscripts postrotate - if [ -x /usr/sbin/invoke-rc.d ]; then - invoke-rc.d privoxy restart > /dev/null + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d privoxy rotate > /dev/null else if [ -f /var/run/privoxy.pid ]; then - /etc/init.d/privoxy restart > /dev/null + /etc/init.d/privoxy rotate > /dev/null fi fi endscript