CompTIA Linux+ (XK0-006)Services and User ManagementEasy

A technician needs to ensure that a newly modified `systemd` service unit file, `/etc/systemd/system/myservice.service`, is reloaded by the `systemd` daemon without restarting the entire system. Which command should the technician execute?

  1. Asystemctl reload-daemon
  2. Bsystemctl daemon-reload
  3. Csystemctl refresh-units
  4. Dsystemctl update-systemd
Show answer & explanation

Correct answer: B. systemctl daemon-reload

The `systemctl daemon-reload` command is specifically used to tell `systemd` to rescan all unit files, including any modifications made to existing ones or new unit files, without requiring a full system reboot.

Why the other options are wrong

  • A. `reload-daemon` is not a valid `systemctl` subcommand.
  • C. `refresh-units` is not a valid `systemctl` subcommand.
  • D. `update-systemd` is not a valid `systemctl` subcommand and implies updating the `systemd` software itself, not its configuration.

systemctl daemon-reload

The `systemctl daemon-reload` command instructs the `systemd` manager to rescan and reload all unit files from disk, applying any changes to service configurations without restarting the entire system.

  • Reloads `systemd` unit definitions.
  • Required after modifying unit files.
  • Does not stop or start services, only re-reads their configurations.

Memory trick: DAEMON-RELOAD to refresh systemd's memory.

More Services and User Management questions