Chapter 7. Managing services in the web console

Learn how to manage system services in the RHEL web console interface. You can activate or deactivate services, restart or reload them, or manage their automatic startup.

7.1. Activating or deactivating system services in the web console

This procedure activates or deactivates system services using the web console interface.

Prerequisites

Procedure

You can filter the services by name or description and also by Enabled, Disabled, or Static automatic startup. The interface shows the current state of the service and its recent logs.

  1. Log in to the RHEL web console with administrator privileges.

    For details, see Logging in to the web console.

  2. Click Services in the web console menu on the left.
  3. The default tab for Services is System Services. If you want to manage targets, sockets, timers, or paths, switch to the respective tab in the menu on top.
  4. To open service settings, click on a selected service from the list. You can tell which services are active or inactive by checking the State column.
  5. Activate or deactivate a service:

    • To activate an inactive service, click the Start button.

      cockpit service start pf4

    • To deactivate an active service, click the Stop button.

      cockpit service stop pf4

7.2. Restarting system services in the web console

This procedure restarts system services using the web console interface.

Prerequisites

Procedure

You can filter the services by name or description and also by Enabled, Disabled, or Static automatic startup. The interface shows the current state of the service and its recent logs.

  1. Log in to the RHEL web console with administrator privileges.

    For details, see Logging in to the web console.

  2. Click Services in the web console menu on the left.
  3. The default tab for Services is System Services. If you want to manage targets, sockets, timers, or paths, switch to the respective tab in the menu on top.
  4. To open service settings, click on a selected service from the list.
  5. To restart a service, click the Restart button.

7.3. Overriding the manifest settings in the web console

You can modify the menu of the web console for a particular user and all users of the system. In the cockpit project, a package name is a directory name. A package contains the manifest.json file along with other files. Default settings are present in the manifest.json file. You can override the default cockpit menu settings by creating a <package-name>.override.json file at a specific location for the specified user.

Prerequisites

Procedure

  1. Override manifest settings in the <systemd>.override.json file in a text editor of your choice, for example:

    1. To edit for all users, enter:

      # vi /etc/cockpit/<systemd>.override.json
    2. To edit for a single user, enter:

      # vi ~/.config/cockpit/<systemd>.override.json
  2. Edit the required file with the following details:

    {
      "menu": {
      "services": null,
      "logs": {
          "order": -1
      }
     }
    }
    • The null value hides the services tab
    • The -1 value moves the logs tab to the first place.
  3. Restart the cockpit service:

    # systemctl restart cockpit.service

Additional resources