diff options
author | Justin Dearing <jdearing@mongodb.org> | 2010-09-04 06:41:22 +0800 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-09 10:56:09 -0500 |
commit | d7b885a44f4816874cdb69e6962f483147f9ed43 (patch) | |
tree | 35cdba0056b37167377ee66541c73957da441e01 | |
parent | 6280a732012821396ee8432470884b2d38fb48c3 (diff) | |
download | mongo-d7b885a44f4816874cdb69e6962f483147f9ed43.tar.gz |
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.
-rw-r--r-- | util/ntservice.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 << " "; |