Package: privoxy
Version: 3.0.3-5

The logrotate script restarts privoxy via invoke-rc.d before checking
that it is currently running.  The check for a running daemon is
performed for direct init-script invocation, but not when using
invoke-rc.d.  The following patch checks for a running daemon before
restarting privoxy.  I have also changed the mixture of spaces and
tabs to use only tabs.

Stefan Hajnoczi

privoxy-3.0.3/debian/logrotate
9,13c9,13
<               if [ -x /usr/sbin/invoke-rc.d ]; then
<                       invoke-rc.d privoxy restart
<               else
<                       if [ -f /var/run/privoxy.pid ]; then
<                               /etc/init.d/privoxy restart > /dev/null
---
>               if [ -f /var/run/privoxy.pid ]; then
>                       if [ -x /usr/sbin/invoke-rc.d ]; then
>                               invoke-rc.d privoxy restart
>                       else
>                               /etc/init.d/privoxy restart > /dev/null
15c15
<               fi
---
>               fi

Reply via email to