17 lines
270 B
Plaintext
17 lines
270 B
Plaintext
# /etc/logrotate.d/mongod.conf
|
|
|
|
/var/log/mongodb/mongod.log {
|
|
daily
|
|
size 2M
|
|
rotate 30
|
|
missingok
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 640 mongodb mongodb
|
|
sharedscripts
|
|
postrotate
|
|
/bin/kill -SIGUSR1 `pidof mongod` >/dev/null 2>&1
|
|
endscript
|
|
}
|