diff --git a/ntp.spec b/ntp.spec index 670ee583be972a295e9f3292a650756fb6240e04..3fdd29a8f37be96faf28c5b74beedc9f696983af 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p15 -Release: 11 +Release: 12 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/ @@ -214,6 +214,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Wed Jul 12 2023 chengyechun - 4.2.8p15-12 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add Restart and conflilct service in ntpd.service + * Wed Jun 21 2023 chengyechun - 4.2.8p15-11 - Type:bugfix - ID: 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