summaryrefslogtreecommitdiff
path: root/util/ntservice.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-12-10 13:05:34 +0100
committerAntonin Kral <a.kral@bobek.cz>2010-12-10 13:05:34 +0100
commited4a804c027562e1bf6a0f45dae7326198c29f8e (patch)
tree9d04736132d5421497a80619e30d4c2e03e76728 /util/ntservice.cpp
parente598e7ada36302f35a0da8ae0c63c34b51b6a720 (diff)
downloadmongodb-ed4a804c027562e1bf6a0f45dae7326198c29f8e.tar.gz
Imported Upstream version 1.6.5
Diffstat (limited to 'util/ntservice.cpp')
-rw-r--r--util/ntservice.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/ntservice.cpp b/util/ntservice.cpp
index fe4ae44..22f83a5 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 << " ";