From d7b885a44f4816874cdb69e6962f483147f9ed43 Mon Sep 17 00:00:00 2001 From: Justin Dearing Date: Sat, 4 Sep 2010 06:41:22 +0800 Subject: Better cleanup on nt service install. All the values for --serviceFoo are removed, and the value of --logPath is quoted. Became apparent while testing SERVER-1590. --- util/ntservice.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/ntservice.cpp b/util/ntservice.cpp index fe4ae445150..22f83a52b53 100644 --- a/util/ntservice.cpp +++ b/util/ntservice.cpp @@ -56,8 +56,13 @@ namespace mongo { commandLine << arg << " \"" << dbpath << "\" "; i++; continue; + } else if ( arg == "--logpath" && i + 1 < argc ) { + commandLine << arg << " \"" << argv[i+1] << "\" "; + i++; + continue; } else if ( arg.length() > 9 && arg.substr(0, 9) == "--service" ) { // Strip off --service(Name|User|Password) arguments + i++; continue; } commandLine << arg << " "; -- cgit v1.2.1