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.
Systemd – Reloading a Single Unit/Service File After Modification
systemd
Related Topic
- Systemd timer not starting its service unit
- How to configure multiple systemd services to use one timer
- Modify Systemd Unit File Without Altering Upstream Unit File
- Linux – Overriding a Systemd Unit File to Create a Template Unit File
- Systemd: how to start a service after another, started by timer, finishes
- Linux – How to run a systemd service after network link has been established
- Systemd – Troubleshooting Environment Variables in ExecStart and ExecStop
Best Answer
systemctl daemon-reload
cannot be run on a single unit file. What it does is reloading thesystemd
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.