通过/var/log/messages查看发现chrony服务提示“Unknown lvalue”消息:
Oct 25 17:31:31 shizhanxia.com systemd[1]: [/usr/lib/systemd/system/chronyd.service:25] Unknown lvalue 'ProtectKernelLogs' in section 'Service' Oct 25 17:31:31 shizhanxia.com systemd[1]: [/usr/lib/systemd/system/chronyd.service:26] Unknown lvalue 'ProtectControlGroups' in section 'Service' Oct 25 17:31:31 shizhanxia.com systemd[1]: [/usr/lib/systemd/system/chronyd.service:23] Unknown lvalue 'ProtectHostname' in section 'Service' Oct 25 17:31:31 shizhanxia.com systemd[1]: [/usr/lib/systemd/system/chronyd.service:24] Unknown lvalue 'ProtectKernelModules' in section 'Service' Oct 25 17:31:31 shizhanxia.com systemd[1]: [/usr/lib/systemd/system/chronyd.service:25] Unknown lvalue 'ProtectKernelLogs' in section 'Service' Oct 25 17:31:31 shizhanxia.com systemd[1]: [/usr/lib/systemd/system/chronyd.service:26] Unknown lvalue 'ProtectControlGroups' in section 'Service'
解决方案
要解决这个问题,需要编辑chronyd-systemd服务并注释以下行:
原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/1907.html