Red Hat Training

A Red Hat training course is available for RHEL 8

Chapter 5. Making systemd services start at boot time

systemd is a system and service manager for Linux operating systems that introduces the concept of systemd units.

This section provides information on how to ensure that a service is enabled or disabled at boot time. It also explains how to manage the services through the web console.

5.1. Enabling or disabling the services

You can determine which services are enabled or disabled at boot time already during the installation process. You can also enable or disable a service on an installed operating system.

This section describes the steps for enabling or disabling those services on an already installed operating system:

Prerequisites

  • You must have root access to the system.

Procedure

  1. To enable a service, use the enable option:

    # systemctl enable service_name

    Replace service_name with the service you want to enable.

    You can also enable and start a service in a single command:

    # systemctl enable --now service_name
  2. To disable a service, use the disable option:

    # systemctl disable service_name

    Replace service_name with the service you want to disable.

Warning

You cannot enable a service that has been previously masked. You have to unmask it first:

# systemctl unmask service_name

5.2. Managing services in the rhel 8 web console

This section describes how you can also enable or disable a service using the web console. You can manage systemd targets, services, sockets, timers, and paths. You can also check the service status, start or stop services, enable or disable them.

Prerequisites

  • You must have root access to the system.

Procedure

  1. Open https://localhost:9090/ in a web browser of your preference.
  2. Log in to the web console with your root credentials on the system.
  3. To display the web console panel, click the Host icon, which is in the upper-left corner of the window.

    managing services web console
  4. On the menu, click Services.

    You can manage systemd targets, services, sockets, timers, and paths.

  5. For example, to manage the service NFS client services:

    1. Click Targets.
    2. Select the service NFS client services.
    3. To enable or disable the service, click the Toogle button.
    4. To stop the service, click the button and choose the option Stop.

      stopping service web console