-
-
Save joe1chen/4ac0bdc817cd872b9d88 to your computer and use it in GitHub Desktop.
Revisions
-
joe1chen revised this gist
Sep 18, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # Put this in /etc/logrotate.d/mongodb # http://stackoverflow.com/questions/5004626/mongodb-log-file-growth /log/*.log { daily rotate 30 compress @@ -10,6 +10,6 @@ notifempty sharedscripts postrotate /bin/kill -SIGUSR1 `cat /data/mongod.lock 2> /dev/null` 2> /dev/null || true endscript } -
srpouyet created this gist
Feb 29, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Put this in /etc/logrotate.d/mongodb # http://stackoverflow.com/questions/5004626/mongodb-log-file-growth /var/log/mongo/*.log { daily rotate 30 compress dateext missingok notifempty sharedscripts postrotate /bin/kill -SIGUSR1 `cat /var/lib/mongo/mongod.lock 2> /dev/null` 2> /dev/null || true endscript }