问题原文
原帖链接 · sgon00 · CC BY-SA 4.0
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.
已采纳解答
原帖链接 · Thomas · CC BY-SA 4.0
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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
