LFCS Service Configuration Practice Question
After editing a service unit file, which command must be run for changes to take effect?
⚠ Common exam trap
Candidates often confuse restarting the service (which affects the running process) with reloading the systemd daemon (which updates the unit definition cache), leading them to choose `systemctl restart` instead of `systemctl daemon-reload`.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
systemctl daemon-reload
When a service unit file is edited, systemd must be notified to reload its configuration from disk. The `systemctl daemon-reload` command instructs systemd to re-read all unit files, applying any changes to the unit definitions without requiring a full system reboot. This is necessary because systemd caches unit file contents in memory, and only a daemon-reload will update that cache.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
systemctl restart <service>
Why it's wrong here
Restart restarts the service but does not reload the unit file; changes may not apply.
- ✓
systemctl daemon-reload
Why this is correct
daemon-reload reloads all unit files, applying any changes.
- ✗
systemctl reenable <service>
Why it's wrong here
reenable is not a standard systemctl command.
- ✗
systemctl reload <service>
Why it's wrong here
systemctl reload sends a reload signal to the service, not for unit file changes.
Go deeper
Related to this question
About these practice questions
This LFCS question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.