ansible-roles/mongodb/templates/logrotate.j2
2017-07-03 17:36:04 +02:00

16 lines
298 B
Django/Jinja

# {{ ansible_managed }}
{{ mongodb_logfile_path }} {
daily
missingok
rotate 365
dateext
compress
delaycompress
notifempty
sharedscripts
postrotate
kill -0 $(cat {{ mongodb_pidfile_path }}) && kill -USR1 $(cat {{ mongodb_pidfile_path }})
endscript
}