在 CentOS-7 中,systemd 的 /etc/systemd/system.conf 中的选项更改需要重新启动还是“systemctl daemon-reload”就足够了?
Spo*_*ler 20
不,daemon-reload 将重新加载所有单元文件,而不是 systemd 本身的配置。但是,# systemctl daemon-reexec
将重新执行 systemd 并使其在此过程中消化其新配置。
从 systemctl 手册页:
daemon-reexec
Reexecute the systemd manager. This will serialize the manager
state, reexecute the process and deserialize the state again. This
command is of little use except for debugging and package upgrades.
Sometimes, it might be helpful as a heavy-weight daemon-reload.
While the daemon is being reexecuted, all sockets systemd listening
on behalf of user configuration will stay accessible.
Run Code Online (Sandbox Code Playgroud)
当手册页说 daemon-reexec 对软件包升级很有用时,这在很大程度上意味着该命令执行任何新的二进制文件并重新处理其配置。但是,我们用来升级 systemd 的 RPM 已经包含一个脚本来执行此操作,因此在正常升级的情况下通常不需要它。
或者你可以重新启动。要么会做。
归档时间: |
|
查看次数: |
75324 次 |
最近记录: |