X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=debian%2Flogrotate;h=d86c12b9583258e2abe218004e157dabd0325760;hp=a110e9329fccf5499256b7814565fa98bba2acd3;hb=093ce0d6a6ba53bc4f89d3c12287fb7e9dcb8a46;hpb=72081f829de368392d04076728f8c991178c0080 diff --git a/debian/logrotate b/debian/logrotate index a110e932..d86c12b9 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 + if [ -f /run/privoxy.pid ]; then + /etc/init.d/privoxy rotate > /dev/null fi fi endscript