[SERVER-10034] Invalid --pidfilepath is silently ignored Created: 26/Jun/13  Updated: 11/Jul/16  Resolved: 27/Sep/13

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Kyle Erf
Resolution: Done Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-10263 Failure to use absolute path for --pi... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

If --pidfilepath is specified on the mongod or mongos command line and the path to the pid file does not work for any reason, no pid file is written and no error message is displayed.

Probably, this should cause a EXIT_BADOPTIONS exit similar to what would happen with any other unusable file specification on the command line (dbpath, logpath, config).

./mongod --pidfilepath /there/is/no/such/path/or/file
// normal startup, no file written, no error message



 Comments   
Comment by Matt Kangas [ 27/Sep/13 ]

Verified

$ ./mongod --pidfilepath /foo
2013-09-27T16:51:52.506-0400 ERROR: Cannot write pid file to /foo: Permission denied

Comment by auto [ 27/Sep/13 ]

Author:

{u'username': u'3rf', u'name': u'Kyle Erf', u'email': u'erf@mongodb.com'}

Message: SERVER-10034 Invalid --pidfilepath no longer silently ignored

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/8a2181ba012c8d28faeb5f5dd56cc7e19ae4ec56

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