10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Print CreateProcess errors on win32 #212

Closed ajdavis closed 8 years ago

ajdavis commented 8 years ago

Clarifies a magic number and doesn't suppress output if CreateProcess fails. I found, for example, that if the "mongo_orchestration" script isn't installed, CreateProcess fails silently and daemonization times out mysteriously. With this change in place, however, we get an error:

$ python mongo_orchestration/server.py  -f ../orchestration.config -e default start --socket-timeout-ms=60000 --bind=127.0.0.1 -s wsgiref
'mongo_orchestration' is not recognized as an internal or external command,
operable program or batch file.