Skip to content

Commit

Permalink
Better cleanup on nt service install.
Browse files Browse the repository at this point in the history
All the values for --serviceFoo are removed, and the value of --logPath is quoted.

Became apparent while testing SERVER-1590.
  • Loading branch information
zippy1981 authored and erh committed Sep 24, 2010
1 parent 2735160 commit d0a3512
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions util/ntservice.cpp
Expand Up @@ -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 << " ";
Expand Down

0 comments on commit d0a3512

Please sign in to comment.