A Linux systems administrator makes updates to systemd-managed service configuration files. Which of the following commands should the administrator execute in order to implement the changes?
Correct Answer: D
In the systemd architecture, service configurations are stored in unit files (e.g., .service, .timer, .mount) located in directories like /etc/systemd/system/ or /usr/lib/systemd/system/. When an administrator modifies these files or creates new ones, the systemd manager does not automatically detect the changes. According to the CompTIA Linux+ V8 curriculum, the command systemctl daemon-reload is required to notify systemd that it needs to rescan the configuration directories and rebuild its internal dependency tree.
Without running daemon-reload, attempting to start or restart the service would result in systemd using the old, cached version of the unit file, or it might generate a warning stating that " the unit file on disk has changed. " This command is a safe operation that does not stop running services; it simply refreshes the manager ' s awareness of the current configuration.
The other options are insufficient for " implementing the changes " to the configuration files themselves.
systemctl enable (Option A) creates the links for starting the service at boot. systemctl start (Option B) attempts to launch the service. systemctl restart (Option C) stops and then starts a service, but if the unit file was changed and daemon-reload was not run, it may fail or use outdated settings.
Thus, systemctl daemon-reload is the essential first step after any modification to a systemd unit file.