CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

systemd Service State and Enablement

One objective, and the single most expensive misunderstanding available: start and enable are unrelated. A service can be running and disabled, stopped and enabled, or masked so it cannot start at all. All four states are produced here, because the grader reboots the machine before marking.

Operating Running Systems Guide 30 of 67 Beginner

systemctl enable --now does both in one command and is the form to default to. disable --now is its counterpart. Neither existed in early systemd, which is why older material tells you to run two commands.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this for the single most expensive misunderstanding available on this exam. This matters because started and enabled are different states - a service can be running now and gone after a reboot, and the exam grades the finished machine.

Before you start

  1. The state of a unit

  2. Started is not enabled

  3. The one command that does both

  4. restart, reload, and the difference

  5. Masking

  6. Finding units and failures

Official sources