[DOCS-13042] Add systemd init instructions for Linux install pages Created: 20/Sep/19  Updated: 30/Oct/23  Resolved: 31/Jan/20

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

Type: Improvement Priority: Major - P3
Reporter: Andrew Feierabend (Inactive) Assignee: Andrew Feierabend (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-9373 Missing init.d startup script (system... Closed
is related to DOCS-10088 Add instructions on how to disable TH... Closed
Participants:
Days since reply: 4 years, 1 day ago
Epic Link: DOCSP-1769

 Description   

Description

Recent versions of many Linux distros have moved to using systemd to manage initialization and management of system and user processes like mongod and mongos. Current instructions cover the original System V init system (/etc/init.d, built around the service command). Systemd uses the systemctl command.

This is a change to how all users would start, stop, and otherwise manage their mongod and mongos processes. Thus, recommend getting input from engineering. Although, the current RPM for a RHEL7 install of mongod (as example) only includes the systemd unit file and not an /etc/init.d script, so it seems that the design decision has already been made, just not documented.

NOTE: Also include necessary sudo systemctl daemon-reload step for users who might install / uninstall / reinstall without restarting.

Scope of changes

• Update installation and process management instructions as appropriate to include systemd instructions alongside extant /etc/init.d instructions.

• Consider including which versions of Linux have moved to systemd support, i.e. Ubuntu as of 15.04 according to: https://wiki.ubuntu.com/SystemdForUpstartUsers

 

Applicable pages:

Community:

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-suse/

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/

 

Enterprise:

https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/

https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-ubuntu/

https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-debian/

https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-suse/

https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-amazon/

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 11/Feb/20 ]

Author:

{'username': 'andf-mongodb', 'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13042 Add systemd instructions alongside existing SysV init instructions
Branch: v4.2
https://github.com/mongodb/docs/commit/8660a6b8b50b9c6898fbb2b69642b5f048f2313f

Comment by Githook User [ 31/Jan/20 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13042 Add systemd instructions alongside existing SysV init instructions
Branch: master
https://github.com/mongodb/docs/commit/39648476c81a652bad6c617789d10a367c884430

Comment by Githook User [ 31/Jan/20 ]

Author:

{'username': 'andf-mongodb', 'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13042 Add systemd instructions alongside existing SysV init instructions
Branch: v4.2
https://github.com/mongodb/docs/commit/8660a6b8b50b9c6898fbb2b69642b5f048f2313f

Comment by Githook User [ 31/Jan/20 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13042 Add systemd instructions alongside existing SysV init instructions
Branch: v4.0
https://github.com/mongodb/docs/commit/84fe76b8efcff64d62bf55f55114c93906acda20

Comment by Githook User [ 31/Jan/20 ]

Author:

{'username': 'andf-mongodb', 'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-13042 Add systemd instructions alongside existing SysV init instructions
Branch: v3.6
https://github.com/mongodb/docs/commit/65db65aafd1210c46f3ed32f09eebf82fa51adb4

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