Commit Graph

26 Commits

Author SHA1 Message Date
rstam
6ebf0c0315 Fixed SERVER-2719, SERVER-1680 and SERVER-1434 (all had the same underlying cause). 2011-03-15 00:17:16 -04:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
dwight
6d53776029 dur 2010-11-17 22:31:38 -05:00
Justin Dearing
f5863ea0c4 Cleaner serice exit code. 2010-09-25 04:05:17 +08:00
Justin Dearing
d0a3512190 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.
2010-09-25 04:05:17 +08:00
Justin Dearing
2735160f15 SERVER-1590 Add --serviceDisplayName and --serviceDescription options to mongod/mongos on windows.
On windows its now possible to set the displayname and description of the mongo service from --install and --reinstall.
2010-09-25 04:05:17 +08:00
Eliot Horowitz
37ae0dbd3f Refactoring of Windows Service related code in preperation for SERVER-1589.
All ntservice related code moved from db.cpp to ntservices.cpp and cmdline.cpp. The code was also consolidated.

Conflicts:

	db/db.cpp
2010-08-20 18:40:44 -04:00
Justin Dearing
b970c7c6d4 Updated comments. 2010-07-27 23:51:37 +08:00
Mathias Stearn
4cea866dd8 Don't use log() in ntservice.cpp 2010-07-16 12:47:10 -04:00
Justin Dearing
fb85e8b40c Fixed windows build.
Added dbpath as a param to installService().
2010-07-08 22:19:54 +08:00
Justin Dearing
55bd8f78f4 Improved command line cleanup for ntservice installation.
dbpath is quoted.
2010-07-08 12:57:33 +08:00
Justin Dearing
e486468edc Better error message if CreateService() fails. 2010-07-06 11:08:42 +08:00
Justin Dearing
94053aebc8 Error handling when calls to OpenSCManager fail. 2010-07-06 11:08:42 +08:00
Justin Dearing
d85697d411 Improvements related to SERVER-1225.
If you specify --serviceUser without specifying a domain .\ is prepended to the name. Also fixed a typo in the logging.
2010-06-14 12:08:25 +08:00
Justin Dearing
b7b0a7aa2a Implemented SERVER-1225 --serviceName and --servicePassword for mongod startup.
Mongod can now configure itself to start as a service running as a user other than LocalSService.

In addition, I improved the messages and flow of service creation and removal.
2010-06-14 11:43:37 +08:00
Justin Dearing
721c6787a6 Implemented --reinstall.
The equivilant of mongod --uninstall followed by mongod --install.
2010-06-14 11:43:07 +08:00
unknown
73b20d0b25 Improced service messages.
Better error message on remove if the service doesnt exist. Better error message on install if the service already exists.
2010-06-12 11:30:18 +08:00
Justin Dearing
efde5cf575 Clean remerge of SERVER-1189 Improves logging in util/ntservice.cpp
I just manually recomitted the changes.
2010-06-05 09:38:54 +08:00
Justin Dearing
30126d08c8 Fixed mongod hanging when issuing a "mongod --remove" with the service running.
If you attempted to remove the service while it was running, it would stop the service and hang in a while loop because a break statement was missing.

Conflicts:

	util/ntservice.cpp
2010-06-04 00:35:59 +08:00
Mathias Stearn
d0eccc9c80 fix windows service registration 2010-05-11 15:29:19 -04:00
Dwight
bd28578ab8 stdafx->pch 2010-04-27 15:27:52 -04:00
Dwight Merriman
0c7aa5f861 null->NULL in ntservice.cpp 2010-04-24 13:01:26 -04:00
Mathias Stearn
452e5c21ea fix ntservice.cpp 2010-04-23 23:28:44 -04:00
Mathias Stearn
036a302e38 Macro smashing. Also sequester lower-case null to ntservice.cpp 2010-04-23 21:07:59 -04:00
Mathias Stearn
d27c8505ea all client files now marked as Apache 2.0. SERVER-329. 2009-10-27 15:59:37 -04:00
alanw
c9c9dc5b03 Added support for running mongod as a Windows NT Service
Signed-off-by: mongodb <mongodb@10gen.com>
2009-06-04 20:55:33 +08:00