Skip to content

Commit 8effebb

Browse files
committed
Update restart agent commands in Agent enrollment methods section
1 parent b1f1525 commit 8effebb

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. Copyright (C) 2015, Wazuh, Inc.
2+
3+
.. tabs::
4+
5+
.. group-tab:: Systemd
6+
7+
.. code-block:: console
8+
9+
# systemctl restart wazuh-agent
10+
11+
.. group-tab:: SysV init
12+
13+
.. code-block:: console
14+
15+
# service wazuh-agent restart
16+
17+
.. group-tab:: No service manager
18+
19+
.. code-block:: console
20+
21+
# /var/ossec/bin/wazuh-control restart
22+
23+
.. End of include file

source/user-manual/agent/agent-enrollment/enrollment-methods/via-agent-configuration/linux-endpoint.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ Follow the steps below to configure a Linux/Unix endpoint for enrollment via the
5151

5252
#. Restart the Wazuh agent to make the changes effective:
5353

54-
.. code-block:: console
55-
56-
# systemctl restart wazuh-agent
54+
.. include:: /_templates/common/restart_agent_more.rst
5755

5856
#. Click on the upper-left menu icon and navigate to **Agents management** > **Summary** on the Wazuh dashboard to check for the newly enrolled Wazuh agent and its connection status. If the enrollment was successful, you will have an interface similar to the image below.
5957

source/user-manual/agent/agent-enrollment/enrollment-methods/via-manager-API/importing-the-key.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ Follow the steps below to import the client key to a Linux/Unix endpoint:
5353
5454
#. Restart the Wazuh agent to make the changes effective:
5555

56-
.. code-block:: console
57-
58-
# systemctl restart wazuh-agent
56+
.. include:: /_templates/common/restart_agent_more.rst
5957

6058
#. Click on the upper-left menu icon and navigate to **Agents management** > **Summary** on the Wazuh dashboard to check for the newly enrolled Wazuh agent and its connection status. If the enrollment was successful, you will have an interface similar to the image below.
6159

0 commit comments

Comments
 (0)