Is it safe to enable logRotate on running server (mongodb)? -


i want enable logrotate on running server, reach 4gb @ moment. safe enable @ runtime ?

thanks.

https://serverfault.com/questions/540423/mongodb-proper-way-to-rotate-logs

refer answer.

put in /etc/logrotate.d/mongod

/var/log/mongodb/mongodb.log {     weekly     missingok     rotate 4     compress     notifempty     create     postrotate         /usr/bin/pkill -usr1 mongod         rm /var/log/mongodb/mongodb.log.????-??-??t??-??-??     endscript } 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -