ntp/ntpd.service
chengyechun c94620d864 update ntpd.service
(cherry picked from commit c45628777007c23e4bc329b67d95a53ff701fc3c)
2023-12-11 19:30:16 +08:00

15 lines
320 B
Desktop File

[Unit]
Description=Network Time Service
After=syslog.target ntpdate.service sntp.service
Conflicts=chronyd.service systemd-timesyncd.service
[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/ntpd
ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS
PrivateTmp=true
Restart=on-failure
[Install]
WantedBy=multi-user.target