[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:
Related
related to SERVER-339 make --logpath work on windows Closed
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
so for example:
killall -USR1 mongod

Generated at Thu Feb 08 02:53:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.