diff --git a/ntp.spec b/ntp.spec index e6251f8d0aa170bc11a64c14ebd1db2f35176641..09b6ea18eee9260d594c9a99bf3e6f0c94c8c8ec 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p14 -Release: 9 +Release: 10 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/ @@ -21,7 +21,7 @@ Source14: ntp-wait.service Source15: sntp.service Source16: sntp.sysconfig Patch1: ntp-ssl-libs.patch -Patch2: ntp-psl-def.patch +Patch2: ntp-psl-def.patch Patch3: bugfix-fix-bind-port-in-debug-mode.patch Patch4: bugfix-fix-ifindex-length.patch Patch5: bugfix-MD5-manpage.patch @@ -211,6 +211,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Mon Dec 18 2023 chengyechun - 4.2.8p14-10 +- Type:bugfix +- ID: +- SUG:NA +- DESC:add restart to ntpd.service + * Wed Jun 21 2023 liubo - 4.2.8p14-9 - Type:bugfix - ID: diff --git a/ntpd.service b/ntpd.service index 8370bff63d57466e285d10ff51c6ad50a7050f84..61dee04c70ab0cdab3606a54ea3a4bf0ff35776d 100644 --- a/ntpd.service +++ b/ntpd.service @@ -8,6 +8,7 @@ Type=forking EnvironmentFile=-/etc/sysconfig/ntpd ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS PrivateTmp=true +Restart=on-failure [Install] WantedBy=multi-user.target