Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can anyone provide any information on running mongos as a reliable service on a Windows Server 2008R2 (64-bit) Web server? 10Gen suggests using the Windows Server 2003 Resource Kit Tools, but they are outdated and mongos is still not directly supported to run as a service on Windows.

share|improve this question
add comment

1 Answer

You can use the SRVANY program from the Windows Resource Kit to run mongos as a service, as is described in the MongoDB documentation. SRVANY will work fine on all currently-shipping versions of Windows, regardless of how old SRVANY might be.

You might want to look into the the Non-Sucking Service Manager (NSSM) as an alternative to SRVANY. It's freely redistributable, does the same things as SRVANY, and has a lot more configuration options and has much better recovery functionality.

share|improve this answer
    
Great info, thank you. We noticed when using SRVANY that when the mongos service crashes, the service continues to run and appears healthy, it just stops responding on its TCP Port. –  Robert Oct 26 '11 at 21:44
    
@Robert: NSSM can help you with that. SRVANY is "dumb" when it comes to monitoring the child process it spawns, but NSSM can re-spawn the child process. Have a look-- you'll be pleased. –  Evan Anderson Oct 27 '11 at 0:49
    
+1 for nssm :)) –  Alojz Janez Apr 11 at 21:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.