f28790ce9a
- rsyslog logs were being rotated regardless of whether they exceeded their maixmum size. This was due to "-f" flag passed to logrotate in cron job. - After rotation, /var/log/syslog was never written to again. Instead, logs were written to /var/log/syslog.1. This was due to rsyslog not properly closing the file descriptor to the pre-rotated log. - Also brought back time-related rotation via the new(er) maxsize option, which performs a boolean OR operation. If the log exceeds the maxsize OR the log hasn't been rotated in the specified, it will be rotated. Using the older size option, the time-based rotation was ignored. - Also addresses issue #528
4 lines
109 B
Plaintext
4 lines
109 B
Plaintext
# Attempt to rotate system logs once per minute
|
|
* * * * * root /usr/sbin/logrotate /etc/logrotate.d/rsyslog
|
|
|