Question 390
A health-check script should restart a particular daemon ONLY if it is already running; it must not unexpectedly start a deliberately stopped service. Which action meets this condition?
Explanation
Correct Answer
try-restart restarts an already active unit but leaves an inactive unit stopped; the condition is tied to current execution state.
Incorrect Answers
restart may start an inactive unit, contradicting the requirement not to activate a stopped service.
enable --now alters boot policy as well as starting the service, two unauthorized changes.
Reload-or-restart focuses on whether reload is supported, not on leaving deliberately inactive units untouched.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests