diff --git a/ntp.spec b/ntp.spec index ed9dbf087d4e5e9092f6c6d79ec9b4c48bb4f84d..6f802c554dc954f61ae96ff3ab3f3cddd1874602 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p15 -Release: 7 +Release: 8 Summary: A protocol designed to synchronize the clocks of computers over a network License: MIT and BSD and BSD with advertising URL: https://www.ntp.org/ @@ -209,6 +209,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Tue May 23 2023 chengyechun - 4.2.8p15-8 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add Restart and conflict service in ntpd.service + * Fri May 12 2023 chengyechun - 4.2.8p15-7 - Type:bugfix - ID:NA diff --git a/ntpd.service b/ntpd.service index a638dad26d52df356ed931c57bda9a79c5053f61..22e39fee55138597573363b37b724f42344d30a1 100644 --- a/ntpd.service +++ b/ntpd.service @@ -1,13 +1,14 @@ [Unit] Description=Network Time Service After=syslog.target ntpdate.service sntp.service -Conflicts=systemd-timesyncd.service +Conflicts=systemd-timesyncd.service chronyd.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