Merge rotation of logfile and jarfile
[privoxy.git] / debian / logrotate
index d230a8b..a0e7c61 100644 (file)
@@ -1,21 +1,14 @@
-/var/log/privoxy/logfile {
+/var/log/privoxy/logfile /var/log/privoxy/jarfile {
        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 [ -f /var/run/privoxy.pid ]
+               then
+                       kill -HUP `cat /var/run/privoxy.pid` > /dev/null
+               fi
        endscript
 }