我正在阅读手册页systemctl reload
,发现这句话是关于reload
.
reload PATTERN...
Asks all units listed on the command line to reload their
configuration.
http://man7.org/linux/man-pages/man1/systemctl.1.html
systemd 是如何做到这一点的?systemd 使用什么 API 来要求单元重新加载其配置?
我也发现了reload-or-restart
。
reload-or-restart PATTERN...
Reload one or more units if they support it. If not, restart them
instead.
systemd 如何知道该单元是否支持重新加载?
以下是手册页
systemd.service
关于重新加载的内容:(要知道
systemd.service
要查看的正确手册页的唯一方法是谷歌搜索ExecReload
,这是我在挖掘 Systemd 的源代码后猜到的一个字符串。)