]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/etc/logrotate.conf
Added Mail log file to '/etc/logrotate.conf'
[people/pmueller/ipfire-2.x.git] / config / etc / logrotate.conf
index 4e02ab23be3dbf23352a8f15f21a96aed83e6464..0b6b485737a653e658bd45f9c0a12026f3701e39 100644 (file)
@@ -10,7 +10,7 @@ create
 # uncomment this if you want your log files compressed
 compress
 
-# packages drop log rotation information into this directory                                                                                                                                  
+# packages drop log rotation information into this directory
 include /etc/logrotate.d
 
 # wtmp
@@ -28,16 +28,16 @@ include /etc/logrotate.d
     endscript
 }
 
-/var/log/snort/alert  {
+/var/log/suricata/*.log {
     weekly
     copytruncate
     compress
     ifempty
     missingok
     postrotate
-       /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
+       /bin/find /var/log/suricata -path '/var/log/suricata/[0-9]*' -prune -exec /bin/rm -rf {} \;
+       /bin/find /var/log/suricata -name 'fast.log.*' -mtime +28 -exec /bin/rm -rf {} \;
+       /bin/kill -HUP `cat /var/run/suricata.pid 2> /dev/null` 2> /dev/null || true
     endscript
 }
 
@@ -68,7 +68,7 @@ include /etc/logrotate.d
     endscript
 }
 
-/var/log/messages /var/log/bootlog /var/log/dhcpcd.log {
+/var/log/messages /var/log/bootlog /var/log/dhcpcd.log /var/log/mail {
     create 664 root syslogd
     sharedscripts
     ifempty