mongodb/mongodb.logrotate

13 lines
247 B
Plaintext

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