Skip to content

Commit a5514df

Browse files
committed
DOCSP-9647 add command to determine init system
1 parent 327ce91 commit a5514df

12 files changed

+72
-21
lines changed
Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
To run and manage your :binary:`~bin.mongod` process, you will be using
2-
your operating system's built-in initialization system. Recent versions
3-
of Linux tend to use **systemd** (which uses the ``systemctl`` command),
2+
your operating system's built-in :term:`init system`. Recent versions of
3+
Linux tend to use **systemd** (which uses the ``systemctl`` command),
44
while older versions of Linux tend to use **System V init** (which uses
5-
the ``service`` command). Refer to the documentation for your operating
6-
system for more information.
5+
the ``service`` command).
76

8-
Use the initialization system appropriate for your platform:
7+
If you are unsure which init system your platform uses, run the
8+
following command:
9+
10+
.. container::
11+
12+
.. code-block:: sh
13+
14+
ps --no-headers -o comm 1
15+
16+
Then select the appropriate tab below based on the result:
17+
18+
- ``systemd`` - select the **systemd (systemctl)** tab below.
19+
20+
- ``init`` - select the **System V Init (service)** tab below.
21+
22+
|

source/reference/glossary.txt

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,25 @@ Glossary
181181
See :ref:`sharding-config-server`.
182182

183183
init script
184-
A simple shell script used by a Linux system's initialization
185-
process to start, restart or stop a :term:`daemon` process. If you
186-
installed MongoDB via a package manager, an init script
187-
has been provided for your system as part of the installation. See
188-
the respective :doc:`Installation Guide </installation>` for your
189-
operating system.
184+
A simple shell script used by a Linux platform's
185+
:term:`init system` to start, restart or stop a :term:`daemon`
186+
process. If you installed MongoDB via a package manager, an init
187+
script has been provided for your system as part of the
188+
installation. See the respective
189+
:doc:`Installation Guide </installation>` for your operating
190+
system.
191+
192+
init system
193+
The init system is the first process started on a Linux platform
194+
after the kernel starts, and manages all other processes on the
195+
system. The init system uses an :term:`init script` to start,
196+
restart or stop a :term:`daemon` process, such as
197+
:binary:`~bin.mongod` or :binary:`~bin.mongos`. Recent versions of
198+
Linux tend to use the **systemd** init system, which uses the
199+
``systemctl`` command, while older versions tend to use the
200+
**System V** init system, which uses the ``service`` command.
201+
See the respective :doc:`Installation Guide </installation>` for
202+
your operating system.
190203

191204
CRUD
192205
An acronym for the fundamental operations of a database: Create,
@@ -509,20 +522,24 @@ Glossary
509522
type to describe a file inserted into :term:`GridFS` storage.
510523

511524
mongo
512-
The MongoDB shell. The :binary:`~bin.mongo` process starts the MongoDB
513-
shell as a daemon connected to either a :binary:`~bin.mongod` or
514-
:binary:`~bin.mongos` instance. The shell has a JavaScript interface.
515-
See :doc:`/reference/program/mongo` and :doc:`/reference/method`.
525+
The MongoDB shell. The :binary:`~bin.mongo` process starts the
526+
MongoDB shell as a :term:`daemon` connected to either a
527+
:binary:`~bin.mongod` or :binary:`~bin.mongos` instance. The shell
528+
has a JavaScript interface. See :doc:`/reference/program/mongo`
529+
and :doc:`/reference/method`.
516530

517531
mongod
518-
The MongoDB database server. The :binary:`~bin.mongod` process starts
519-
the MongoDB server as a daemon. The MongoDB server manages data
520-
requests and formats and manages background operations. See
521-
:doc:`/reference/program/mongod`.
532+
The MongoDB database server. The :binary:`~bin.mongod` process
533+
starts the MongoDB server as a :term:`daemon`. The MongoDB server
534+
manages data requests and formats and manages background
535+
operations. See :doc:`/reference/program/mongod`.
522536

523537
mongos
524-
The routing and load balancing process that acts an interface
525-
between an application and a MongoDB :term:`sharded cluster`. See
538+
The MongoDB sharded cluster query router. The
539+
:binary:`~bin.mongos` process starts the MongoDB router as a
540+
:term:`daemon`. The MongoDB router acts as an interface
541+
between an application and a MongoDB :term:`sharded cluster` and
542+
handles all routing and load balancing across the cluster. See
526543
:doc:`/reference/program/mongos`.
527544

528545
namespace

source/tutorial/install-mongodb-enterprise-on-amazon.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Procedure
8484
Follow these steps to run MongoDB |edition| Edition. These instructions
8585
assume that you are using the default settings.
8686

87+
**Init System**
88+
8789
.. include:: /includes/fact-systemd-vs-initd.rst
8890

8991
.. tabs::

source/tutorial/install-mongodb-enterprise-on-debian.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ These instructions assume that you are using the official |package-name|
8383
package -- not the unofficial ``mongodb`` package provided by
8484
|distro-name| -- and are using the default settings.
8585

86+
**Init System**
87+
8688
.. include:: /includes/fact-systemd-vs-initd.rst
8789

8890
.. tabs::

source/tutorial/install-mongodb-enterprise-on-red-hat.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ Procedure
155155
Follow these steps to run MongoDB |edition| Edition on your system.
156156
These instructions assume that you are using the default settings.
157157

158+
**Init System**
159+
158160
.. include:: /includes/fact-systemd-vs-initd.rst
159161

160162
.. tabs::

source/tutorial/install-mongodb-enterprise-on-suse.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ Procedure
7474
Follow these steps to run MongoDB |edition| Edition. These instructions
7575
assume that you are using the default settings.
7676

77+
**Init System**
78+
7779
.. include:: /includes/fact-systemd-vs-initd.rst
7880

7981
.. tabs::

source/tutorial/install-mongodb-enterprise-on-ubuntu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ These instructions assume that you are using the official |package-name|
8787
package -- not the unofficial ``mongodb`` package provided by
8888
|distro-name| -- and are using the default settings.
8989

90+
**Init System**
91+
9092
.. include:: /includes/fact-systemd-vs-initd.rst
9193

9294
.. tabs::

source/tutorial/install-mongodb-on-amazon.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Procedure
8484
Follow these steps to run MongoDB |edition| Edition. These instructions
8585
assume that you are using the default settings.
8686

87+
**Init System**
88+
8789
.. include:: /includes/fact-systemd-vs-initd.rst
8890

8991
.. tabs::

source/tutorial/install-mongodb-on-debian.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ These instructions assume that you are using the official |package-name|
8383
package -- not the unofficial ``mongodb`` package provided by
8484
|distro-name| -- and are using the default settings.
8585

86+
**Init System**
87+
8688
.. include:: /includes/fact-systemd-vs-initd.rst
8789

8890
.. tabs::

source/tutorial/install-mongodb-on-red-hat.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ Procedure
151151
Follow these steps to run MongoDB |edition| Edition on your system.
152152
These instructions assume that you are using the default settings.
153153

154+
**Init System**
155+
154156
.. include:: /includes/fact-systemd-vs-initd.rst
155157

156158
.. tabs::

source/tutorial/install-mongodb-on-suse.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Procedure
7272
Follow these steps to run MongoDB |edition| Edition. These instructions
7373
assume that you are using the default settings.
7474

75+
**Init System**
76+
7577
.. include:: /includes/fact-systemd-vs-initd.rst
7678

7779
.. tabs::

source/tutorial/install-mongodb-on-ubuntu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ These instructions assume that you are using the official |package-name|
106106
package -- not the unofficial ``mongodb`` package provided by
107107
|distro-name| -- and are using the default settings.
108108

109+
**Init System**
110+
109111
.. include:: /includes/fact-systemd-vs-initd.rst
110112

111113
.. tabs::

0 commit comments

Comments
 (0)