[SERVER-14963] mongod --fork should print options on invalid command line Created: 19/Aug/14  Updated: 21/Nov/23  Resolved: 21/Nov/23

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

Type: Bug Priority: Minor - P4
Reporter: Alexander Komyagin Assignee: Backlog - Service Architecture
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Operating System: ALL
Participants:

 Description   

2.6.3
$ mongod foo --syslog --fork
about to fork child process, waiting until server is ready for connections.
forked process: 43462
ERROR: child process failed, exited with error number 1

This is a regression from 2.4:

2.4.9
$ mongod foo --syslog --fork
Invalid command: foo
Allowed options:
 
General options:
[options are printed]

This doesn't happen without --fork


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