https://gitlab.synchro.net/main/sbbs/-/commit/246db6b4ed843d76cc9123d5
Modified Files:
install/logrotate.d/sbbs
Log Message:
logrotate sample: signal rsyslogd to reopen sbbs.log after rotation
Without a postrotate step, rsyslogd keeps its file descriptor on the
renamed sbbs.log.1 and keeps writing there, while the newly created
sbbs.log stays empty, until something else (e.g. the distro's own weekly rsyslog rotation) happens to make it reopen its files. Meanwhile
notifempty skips sbbs.log, so "maxsize 1G" never applies: rotated files
of 2-5 GB were the symptom.
Use Debian's /usr/lib/rsyslog/rsyslog-rotate helper when present,
otherwise send SIGHUP to rsyslogd directly.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net