3ec3e20e5a
* [logrotate] Decrease frequency to every 10 minutes; kill any lingering logrotate processes * [logrotate] Delete all *.1.gz files as firstaction; Remove note about init-system-helpers < 1.47 workaround However, continue to send SIGHUP directly to rsyslogd process because 'service rsyslog rotate' still doesn't work properly with init-system-helpers version 1.48
4 lines
270 B
Plaintext
4 lines
270 B
Plaintext
# Attempt to rotate system logs once every 10 minutes.
|
|
# First kill any logrotate process(es) if they are still running, as they're most likely hung
|
|
*/10 * * * * root /usr/bin/pkill -9 logrotate > /dev/null 2>&1; /usr/sbin/logrotate /etc/logrotate.conf > /dev/null 2>&1
|