mongodb/SOURCES/mongodb.logrotate
2021-12-16 13:02:55 +00:00

13 lines
277 B
Plaintext

/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
}