Pcornel
Linux · systemd & Services

daemon-reload

Cheat sheet · https://pcornel.dk/topic.php?topic=2723

Back to the Topic

Answer

systemctl daemon-reload makes systemd re-read all unit files and drop-ins. Changes to unit files have no effect until you run it.

Remember

daemon-reload does not restart services — restart the changed unit afterwards. systemctl edit runs it for you.

First checks

  • systemctl status <unit> — state, main PID, recent log lines
  • systemctl list-units --failed — failed units
  • journalctl -u <unit> -b — the unit's log since boot
  • systemctl cat <unit> — unit file plus drop-ins
  • systemd-analyze verify <unit> — unit file errors

Commands

systemctl cat
systemctl edit
systemctl reload
systemctl daemon-reload
systemctl reload <unit>
systemctl daemon-reexec
systemctl status
mount -a

Verify in this order

unit file changed on disk → daemon-reload → systemd's in-memory configuration updated → restart applies it to the process

Where it usually breaks

First mismatch in persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2723

Confirmation

Confirm action

Continue?