diff --git a/ntp.spec b/ntp.spec index 6181d58f31c447adc72bd9353230cea2c302c74a..0a90aec3c48c386e6296b6eecd7e8399b6f775f7 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p17 -Release: 1 +Release: 2 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/ @@ -207,6 +207,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Mon Dec 11 2023 chengyechun - 4.2.8p17-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add Restart in ntpd.service + * Fri Jul 21 2023 chengyechun - 4.2.8p17-1 - Type:enhancement - 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