* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 30ccb9ed80ee3ad70403794da4c937fd183b9bd8
@ 2026-04-21 9:32 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2026-04-21 9:32 UTC (permalink / raw)
To: ipfire-scm
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 30ccb9ed80ee3ad70403794da4c937fd183b9bd8 (commit)
from 818a2094757986540f3366c79f46e1409b2b4151 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 30ccb9ed80ee3ad70403794da4c937fd183b9bd8
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Tue Apr 21 09:32:11 2026 +0000
logrotate: Rotate Suricata logs daily
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>
-----------------------------------------------------------------------
Summary of changes:
config/etc/logrotate.conf | 8 +++-----
config/rootfiles/core/202/filelists/files | 1 +
2 files changed, 4 insertions(+), 5 deletions(-)
Difference in files:
diff --git a/config/etc/logrotate.conf b/config/etc/logrotate.conf
index c5f9883c7..2f79de933 100644
--- a/config/etc/logrotate.conf
+++ b/config/etc/logrotate.conf
@@ -29,14 +29,12 @@ include /etc/logrotate.d
}
/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
}
diff --git a/config/rootfiles/core/202/filelists/files b/config/rootfiles/core/202/filelists/files
index ebaef1717..50fe9d2c2 100644
--- a/config/rootfiles/core/202/filelists/files
+++ b/config/rootfiles/core/202/filelists/files
@@ -1,3 +1,4 @@
+etc/logrotate.conf
etc/rc.d/init.d/firewall
etc/rc.d/init.d/sysklogd
etc/rc.d/init.d/unbound
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-21 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-21 9:32 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 30ccb9ed80ee3ad70403794da4c937fd183b9bd8 Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox