From e7194db01f858cb0833bdb84384037db459d12ff Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 21 Feb 2021 16:24:30 +0100 Subject: [PATCH] debian: leverage built-in log rotation instead of logrotate Signed-off-by: Joachim Wiberg --- debian/control | 1 - debian/syslogd.default | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index aff48da..9dec237 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,6 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6) Provides: syslogd, linux-kernel-log-daemon, system-log-daemon Conflicts: syslogd, linux-kernel-log-daemon, system-log-daemon -Recommends: logrotate Description: system logging daemon Continuation of the original syslog daemon for Linux, based on the *BSD syslog daemon. Now with kernel logging and log rotation built-in. It diff --git a/debian/syslogd.default b/debian/syslogd.default index ed51ae0..be33dc7 100644 --- a/debian/syslogd.default +++ b/debian/syslogd.default @@ -4,4 +4,5 @@ # Secure mode enabled, forwarding to remote servers allowed, disable # with another '-s', logging from remote servers disallowed. -SYSLOGD_OPTS="-s" +# Default log rotation at 10 MiB, keeping 10 backlog copies. +SYSLOGD_OPTS="-s -r 10M:10"