Systemd – Reloading a Single Unit/Service File After Modification

systemd

Can I reload a single systemd unit/service file after its modification (in [Service] section) without reloading all unit files? By online search, everyone talk about systemctl daemon-reload or systemctl --user daemon-reload. This makes me feel really bad. I only want to reload one unit file configuration instead of many. Is that possible to reload the modified one only in systemd? Thanks a lot.

Best Answer

systemctl daemon-reload cannot be run on a single unit file. What it does is reloading the systemd configurations of unit files, rerun all generators and recreates the dependency tree.

I guess since the dependency tree is regenerated it doesn't make sense to run this on a single unit as several unit files may have changed and the dependency tree then could be wrong.