[SERVER-2612] support logRotate under windows Created: 23/Feb/11  Updated: 08/Nov/17  Resolved: 23/Nov/11

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: 2.0.3, 2.1.0

Type: Improvement Priority: Minor - P4
Reporter: AndrewK Assignee: Tad Marshall
Resolution: Done Votes: 12
Labels: Windows, rn
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Issue Links:
Related
Participants:
Case:

 Description   

Add support for log rotation under windows.



 Comments   
Comment by Pavan [ 09/Aug/17 ]

Hi - in mongo config file when we use logRotate:reopen and with logAppend:True - will it create a new log file every day automatically [MongoDB is running as Windows Service] - Is LogRotate option supported on all Windows Operating System Versions - are there any Known version on which LogRotate Option is no Supported - Can you please articulate about the difference of using logAppend:True and LogAppend:False, and difference between LogRotate:Reopen and LogRotate:rename in Windows...

I have read some where that usage of LogRotate in Mongodb Config is not supported on Windows but rather its for Linux is it true..??

Thanks in advance for answering....

Comment by auto [ 22/Dec/11 ]

Author:

{u'login': u'', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-2612 – support logRotate under windows

Add code to support the "logRotate" server command (e.g. "db.runCommand(

{logRotate:1}

)").
Windows does not support the "kill -SIGUSR1 <pid>" alternative that is available in
Linux.
Branch: v2.0
https://github.com/mongodb/mongo/commit/8cd62bc27c3cec5eba8a763c0529637ff6a6f8c3

Comment by Tad Marshall [ 23/Nov/11 ]

Fixed by commit b1684bb3dfdcd4101cc605022258a632f4b38d32. A backport to 2.0.x might be worthwhile – the code changes are fairly small, just one function in one file.

Generated at Thu Feb 08 03:00:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.