Skip to content

DOCSP-9647 add command to determine init system #4021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions source/includes/fact-systemd-vs-initd.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
To run and manage your :binary:`~bin.mongod` process, you will be using
your operating system's built-in initialization system. Recent versions
of Linux tend to use **systemd** (which uses the ``systemctl`` command),
your operating system's built-in :term:`init system`. Recent versions of
Linux tend to use **systemd** (which uses the ``systemctl`` command),
while older versions of Linux tend to use **System V init** (which uses
the ``service`` command). Refer to the documentation for your operating
system for more information.
the ``service`` command).

Use the initialization system appropriate for your platform:
If you are unsure which init system your platform uses, run the
following command:

.. container::

.. code-block:: sh

ps --no-headers -o comm 1

Then select the appropriate tab below based on the result:

- ``systemd`` - select the **systemd (systemctl)** tab below.

- ``init`` - select the **System V Init (service)** tab below.

|
49 changes: 33 additions & 16 deletions source/reference/glossary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,25 @@ Glossary
See :ref:`sharding-config-server`.

init script
A simple shell script used by a Linux system's initialization
process to start, restart or stop a :term:`daemon` process. If you
installed MongoDB via a package manager, an init script
has been provided for your system as part of the installation. See
the respective :doc:`Installation Guide </installation>` for your
operating system.
A simple shell script used by a Linux platform's
:term:`init system` to start, restart, or stop a :term:`daemon`
process. If you installed MongoDB via a package manager, an init
script has been provided for your system as part of the
installation. See the respective
:doc:`Installation Guide </installation>` for your operating
system.

init system
The init system is the first process started on a Linux platform
after the kernel starts, and manages all other processes on the
system. The init system uses an :term:`init script` to start,
restart, or stop a :term:`daemon` process, such as
:binary:`~bin.mongod` or :binary:`~bin.mongos`. Recent versions of
Linux tend to use the **systemd** init system, which uses the
``systemctl`` command, while older versions tend to use the
**System V** init system, which uses the ``service`` command.
See the respective :doc:`Installation Guide </installation>` for
your operating system.

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

mongo
The MongoDB shell. The :binary:`~bin.mongo` process starts the MongoDB
shell as a daemon connected to either a :binary:`~bin.mongod` or
:binary:`~bin.mongos` instance. The shell has a JavaScript interface.
See :doc:`/reference/program/mongo` and :doc:`/reference/method`.
The MongoDB shell. The :binary:`~bin.mongo` process starts the
MongoDB shell as a :term:`daemon` connected to either a
:binary:`~bin.mongod` or :binary:`~bin.mongos` instance. The shell
has a JavaScript interface. See :doc:`/reference/program/mongo`
and :doc:`/reference/method`.

mongod
The MongoDB database server. The :binary:`~bin.mongod` process starts
the MongoDB server as a daemon. The MongoDB server manages data
requests and formats and manages background operations. See
:doc:`/reference/program/mongod`.
The MongoDB database server. The :binary:`~bin.mongod` process
starts the MongoDB server as a :term:`daemon`. The MongoDB server
manages data requests and formats and manages background
operations. See :doc:`/reference/program/mongod`.

mongos
The routing and load balancing process that acts an interface
between an application and a MongoDB :term:`sharded cluster`. See
The MongoDB sharded cluster query router. The
:binary:`~bin.mongos` process starts the MongoDB router as a
:term:`daemon`. The MongoDB router acts as an interface
between an application and a MongoDB :term:`sharded cluster` and
handles all routing and load balancing across the cluster. See
:doc:`/reference/program/mongos`.

namespace
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-amazon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Procedure
Follow these steps to run MongoDB |edition| Edition. These instructions
assume that you are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-debian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ These instructions assume that you are using the official |package-name|
package -- not the unofficial ``mongodb`` package provided by
|distro-name| -- and are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-red-hat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ Procedure
Follow these steps to run MongoDB |edition| Edition on your system.
These instructions assume that you are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-suse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Procedure
Follow these steps to run MongoDB |edition| Edition. These instructions
assume that you are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-enterprise-on-ubuntu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ These instructions assume that you are using the official |package-name|
package -- not the unofficial ``mongodb`` package provided by
|distro-name| -- and are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-on-amazon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Procedure
Follow these steps to run MongoDB |edition| Edition. These instructions
assume that you are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-on-debian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ These instructions assume that you are using the official |package-name|
package -- not the unofficial ``mongodb`` package provided by
|distro-name| -- and are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-on-red-hat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ Procedure
Follow these steps to run MongoDB |edition| Edition on your system.
These instructions assume that you are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-on-suse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Procedure
Follow these steps to run MongoDB |edition| Edition. These instructions
assume that you are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down
2 changes: 2 additions & 0 deletions source/tutorial/install-mongodb-on-ubuntu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ These instructions assume that you are using the official |package-name|
package -- not the unofficial ``mongodb`` package provided by
|distro-name| -- and are using the default settings.

**Init System**

.. include:: /includes/fact-systemd-vs-initd.rst

.. tabs::
Expand Down