Add all Debian changes from 3.0.19-2 to 3.0.24-1
[privoxy.git] / debian / logrotate
index a110e93..deddd26 100644 (file)
@@ -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