[SERVER-358] Need a clean way to rotate server logs when mongod is started with --logpath Created: 14/Oct/09 Updated: 12/Jul/16 Resolved: 16/Oct/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.2 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Erik Jones | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
The only way to rotate mongod's server log (i.e. when it's started with --logpath) seems to be to move the existing log and restart the server. There should be some functionality to make mongod close and re-open it's log. Perhaps follow suit with MySQL (and other stuff) and have it respond to SIGHUP with that behavior? |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 16/Oct/09 ] |
|
release 10/16/2009 |
| Comment by Eliot Horowitz (Inactive) [ 16/Oct/09 ] |
|
done with SIGUSR1 |