This patch also cleans up what happens. Logrotate will automatically
delete any old log files and does not require any extra commands.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
/var/log/suricata/*.log {
- weekly
+ daily
copytruncate
- compress
- ifempty
+ notifempty
missingok
+ sharedscripts
postrotate
- /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
}
+etc/logrotate.conf
etc/rc.d/init.d/firewall
etc/rc.d/init.d/sysklogd
etc/rc.d/init.d/unbound