Tad Marshall
460294e506
SERVER-4410 -- Windows Service --install option isn't quoting all file parameters
...
Added quoting code for --pidfilepath, --config, -f, --repairpath and --keyfile.
I think that's all of the current options that can accept filespecs (whether or
not they make sense for a service).
2011-12-02 11:26:00 -05:00
Tad Marshall
c8e45cce25
SERVER-2833 -- shut down cleanly on OS or Service Controller shutdown event
...
Added code to log shutdown events from the Windows Service Controller
and to respond correctly to those events. Shutdown from the console
on logoff or shutdown callbacks (stop ignoring them).
2011-12-01 20:42:13 -05:00
Tad Marshall
03cfbb5062
SERVER-3582 -- Mongo Windows Service locks up CPU when computer reboots after a crash
...
Remove (put on the wrong side of #if 1, actually) the code that was setting
up automatic restarts (forever) after a "failure". Anything other than a
clean exit would cause automatic restart, and anything other than a clean
exit would leave the mongod.lock file set, which would cause another failure.
We need to have a better scheme for having the Windows service "do the right
thing" after a power failure or system crash, looping forever in failure mode
is not good behavior.
2011-11-26 13:55:44 -05:00
Tad Marshall
4666f1d2a5
SERVER-3097 -- "mongod --install" uses wrong image path depending on CWD
...
Use GetModuleFileName() to get path of running exe.
2011-11-26 11:38:20 -05:00
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