diff --git a/install/logrotate.d/sbbs b/install/logrotate.d/sbbs new file mode 100644 index 0000000000000000000000000000000000000000..e0b79ddf07c3d7256c72b617862ba38495d2a51e --- /dev/null +++ b/install/logrotate.d/sbbs @@ -0,0 +1,13 @@ +# Synchronet syslog file rotation configuration +# Assumes rsyslogd is configured to log sbbs syslog output to /var/log/sbbs.log +# Assumes user/group sbbs:sbbs has been created and is used to run sbbs +# Copy this file to /etc/logrotate.d/ and edit to suit +/var/log/sbbs.log { + weekly + maxsize 1G + missingok + rotate 10 + notifempty + create 640 sbbs sbbs + maxage 90 +} diff --git a/install/rsyslog.d/sbbslog.conf b/install/rsyslog.d/sbbslog.conf new file mode 100644 index 0000000000000000000000000000000000000000..a3578b1e5f0d28e7f9db276335ac3367c4d25337 --- /dev/null +++ b/install/rsyslog.d/sbbslog.conf @@ -0,0 +1,8 @@ +# Synchronet syslog output control +# Assumes LogFaclity=3 in [UNIX] section of ctrl/sbbs.ini file +# Assumes sbbs is running as user/group: sbbs/sbbs +# Copy this file to /etc/rsyslog.d/ and edit to suit +$FileOwner sbbs +$FileGroup sbbs +local3.* /var/log/sbbs.log +