After saving changes to several custom .service unit files in /etc/systemd/system, you need systemd to read the updated unit definitions without interrupting any running services. Which single systemctl subcommand should you run to accomplish this?
The daemon-reload operation tells the systemd manager to rerun its generators, reload all unit files on disk, and rebuild the dependency tree. It does not stop, start, or otherwise disturb currently running units, so services continue running while the new unit metadata is read. The plain reload subcommand only asks an individual service to reread its own application-level configuration and does not refresh unit files. restart stops and then starts the service, causing downtime. daemon-reexec restarts the systemd process itself, which is heavier than necessary for this task. Therefore, systemctl daemon-reload is the correct choice.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between `daemon-reload` and `reload` in systemctl?
Open an interactive chat with Bash
What is the purpose of the `daemon-reexec` command in systemctl?
Open an interactive chat with Bash
Why does `systemctl restart` cause downtime and when should it be used?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access