syslog_daemon: add syslog_max_history option

This driver setting in ~/config/settings/kernel/drivers/kernel allows
setting an arbitrary number of syslog files to keep around.  The
files are now named with a numeric suffix instead of being called
"syslog.old".  The old files are rotated so that syslog.1 is the
newest, then syslog.2, and so on.

Change-Id: I7e3d01caa34680553b161ceb27ab8c3b2eaf508c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9055
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Chris Roberts
2025-03-24 21:24:21 +00:00
committed by waddlesplash
parent ce6f846b6f
commit 7521af58c4
2 changed files with 29 additions and 8 deletions
+6
View File
@@ -52,6 +52,12 @@ load_symbols true
#syslog_time_stamps true
# Include time stamps in syslog debug output, defaults to false.
#syslog_max_history 7
# Maximum number of old syslogs to keep. The files are named
# syslog.1, syslog.2, syslog.3,... with syslog.1 being the newest.
# Defaults to 1, using 0 will disable this and syslog will be recreated
# when it reaches syslog_max_size.
#syslog_max_size 20MB
# Sets the maximum syslog file size, default is 512kB.