Files
pvc-ansible/roles/base/templates/etc/logrotate.d/rsyslog.j2
Joshua Boniface dc9ff33a8f Explicitly use systemctl in logrotate
For some reason (Debian bug?) the default rsyslog-rotate script was not
properly rotating rsyslog logfiles. Instead, explicitly call systemctl
kill -s HUP for this, using a full path.
2023-01-17 11:03:32 -05:00

22 lines
391 B
Django/Jinja

# Logrotate configuration for standard log files
# {{ ansible_managed }}
/var/log/kern.log
/var/log/daemon.log
/var/log/auth.log
/var/log/cron.log
/var/log/mail.log
/var/log/system.log
{
rotate {{ logrotate_keepcount }}
{{ logrotate_interval }}
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/bin/systemctl kill -s HUP rsyslog.service
endscript
}