Services and User Management

An administrator changes the ExecStart= line in /etc/systemd/system/reportd.service and runs systemctl restart reportd.service. The shell warns that the unit file changed on disk, and the service still runs the old command. What should the administrator do next?

Show the answer

Correct answerA. Run systemctl daemon-reload, then restart reportd.service again

daemon-reload makes systemd re-read unit files from disk; a following restart then runs the new ExecStart. systemctl reload only signals the service to re-read its own application configuration and never re-reads the unit file.