重新启动或“systemctl守护进程重新加载”更改/etc/systemd/system.conf?

在CentOS-7中,systemd的/etc/systemd/system.conf文件中的选项需要重新启动,还是需要“systemctl daemon-reload”?

不,守护进程重新加载将重新加载所有单元文件,而不是systemd自身的configuration。 但是, # systemctl daemon-reexec会重新执行systemd并使其在过程中消化其新configuration。

从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. 

当手册页说daemon-reexec对软件包升级很有用的时候,这在很大程度上意味着这个命令执行任何新的二进制文件并重新处理它的configuration。 然而,我们用来升级systemd的RPM已经包含了一个脚本来做到这一点,所以在正常升级的情况下通常是不需要的。

或者你可以重新启动。 要么会做。