From d0a3512190764f1d7bfdca741987e7a7fa0128bc Mon Sep 17 00:00:00 2001 From: Justin Dearing Date: Sat, 4 Sep 2010 06:41:22 +0800 Subject: [PATCH] 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 d76df684b0237..2114448886dbb 100644 --- a/util/ntservice.cpp +++ b/util/ntservice.cpp @@ -146,8 +146,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 << " ";