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