[DOCS-8850] For systemd mongd.service file need to include Type = forking Created: 24/Sep/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Roy Rim Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-25748 mongod fails to start with the defaul... Closed
Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Story Points: 1

 Description   

Customer is on Ubuntu 16.04 and copied the mongod.service file from our docs but could not get the service to successfully run unless he included "Type = forking" under [Service]. Type of forking is recommended for daemon style services.

thomas.schubert pointed out that this is actually dependent on mongod's configuration. If mongod configuration has fork = true then the mongod.system file must also contain "Type = forking".

For more on Type see this:
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=

We should modify our document to include this. We may also consider including PIDFile= as well although this should match with the mongod.conf otherwise things do not start/stop well.



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:57:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.