mongodb/mongodb.logrotate

13 lines
277 B
Plaintext
Raw Permalink Normal View History

/var/log/mongodb/*.log {
weekly
rotate 10
copytruncate
delaycompress
compress
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/mongodb/mongod.pid 2>/dev/null` 2> /dev/null|| true
endscript
}