]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/etc/logrotate.conf
Merge remote-tracking branch 'morlix/check_mk'
[people/teissler/ipfire-2.x.git] / config / etc / logrotate.conf
index d4209369d08d91215e0d78adbd76ed15ddd35624..d38570de5526d5113ff691c1b372696379168e62 100644 (file)
@@ -10,6 +10,9 @@ create
 # uncomment this if you want your log files compressed
 compress
 
+# packages drop log rotation information into this directory
+include /etc/logrotate.d
+
 # wtmp
 /var/log/wtmp {
     weekly
@@ -32,9 +35,9 @@ compress
     ifempty
     missingok
     postrotate
-       /usr/bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
-       /usr/bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
-       /usr/local/bin/restartsnort
+       /bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
+       /bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
+       /etc/init.d/snort restart
     endscript
 }
 
@@ -65,7 +68,7 @@ compress
     endscript
 }
 
-/var/log/messages /var/log/boot.log /var/log/dhcpcd.log {
+/var/log/messages /var/log/bootlog /var/log/dhcpcd.log {
     create 664 root syslogd
     sharedscripts
     ifempty
@@ -73,3 +76,21 @@ compress
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
+
+/var/log/squidGuard/*.log {
+    weekly
+    rotate 4
+    copytruncate
+    compress
+    notifempty
+    missingok
+}
+
+/var/log/updatexlrator/*.log {
+    weekly
+    rotate 4
+    copytruncate
+    compress
+    notifempty
+    missingok
+}