/etc/systemd/system.conf의 변경 사항을 재부트하거나“systemctl daemon-reload”? /etc/systemd/system.conf에있는 옵션을 변경하려면 재부팅해야합니까,

CentOS-7 내에서 systemd의 /etc/systemd/system.conf에있는 옵션을 변경하려면 재부팅해야합니까, 아니면 “systemctl daemon-reload”로 충분합니까?



답변

아니요, daemon-reload는 systemd 자체의 구성이 아닌 모든 장치 파일을 다시로드합니다. 그러나 # systemctl daemon-reexecsystemd를 다시 실행하여 프로세스에서 새 구성을 요약합니다.

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가 패키지 업그레이드에 유용하다고 말하면 대부분이 명령은 새로운 바이너리가 있으면 실행하고 구성을 다시 처리한다는 것을 의미합니다. 그러나 systemd를 업그레이드하는 데 사용하는 RPM에는 이미이를 수행하는 스크립트가 포함되어 있으므로 일반적인 업그레이드의 경우에는 필요하지 않습니다.

또는 재부팅 할 수 있습니다. 그렇습니다.


답변