From c0c546834b06d23d8d53e3a728d15c383458d8df Mon Sep 17 00:00:00 2001 From: chengyechun Date: Mon, 18 Dec 2023 16:17:20 +0800 Subject: [PATCH] add restart --- ntp.spec | 10 ++++++++-- ntpd.service | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ntp.spec b/ntp.spec index f199bc4..7e11ee6 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: backport-CVE-2020-15025.patch @@ -210,6 +210,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 8370bff..61dee04 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 -- Gitee