ansible-roles/mongodb/templates/logrotate.j2

16 lines
298 B
Plaintext
Raw Normal View History

2017-04-19 10:58:48 +02:00
# {{ ansible_managed }}
{{ mongodb_logfile_path }} {
2017-04-19 10:58:48 +02:00
daily
missingok
rotate 365
dateext
compress
delaycompress
notifempty
sharedscripts
postrotate
kill -0 $(cat {{ mongodb_pidfile_path }}) && kill -USR1 $(cat {{ mongodb_pidfile_path }})
2017-04-19 10:58:48 +02:00
endscript
}