ntp/ntpd.service
chengyechun 3b7acc6f90 add restart
(cherry picked from commit c0c546834b06d23d8d53e3a728d15c383458d8df)
2023-12-20 11:01:30 +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