[SERVER-13338] NT Service does not return failure code on exit Created: 25/Mar/14  Updated: 31/Jul/15  Resolved: 11/Aug/14

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.6.0-rc2
Fix Version/s: 2.7.5

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-13790 Auto-repair operation after an Unexp... Closed
is duplicated by SERVER-17295 On Windows, service recovery actions ... Closed
Operating System: ALL
Participants:

 Description   

mongo::ntservice::initService needs consume a return code from _serviceCallback and return it to the NT SCM. This way the SCM will know to restart mongod/mongos on failure instead of mongod/s always returning a 0 return code.



 Comments   
Comment by Githook User [ 07/Aug/14 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-6771: Windows Service: 'net stop mongodb' gives System error 109 has occurred. – The pipe has been ended.
SERVER-13338: NT Service does not return failure code on exit
Branch: master
https://github.com/mongodb/mongo/commit/488e855b797f1a61d6a5e08f812f85fcb2f03a51

Generated at Thu Feb 08 03:31:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.