add mongodb role
This commit is contained in:
13
ansible/roles/mongodb/files/logrotate.conf
Normal file
13
ansible/roles/mongodb/files/logrotate.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/mongodb/mongod.log {
|
||||
daily
|
||||
rotate 7
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 640 mongodb mongodb
|
||||
sharedscripts
|
||||
postrotate
|
||||
/bin/kill -SIGUSR1 `cat /var/run/mongodb/mongod.pid 2>/dev/null` >/dev/null 2>&1
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user