From 5e989dc92c5f5ae62a06c325964557e0da6f31a3 Mon Sep 17 00:00:00 2001 From: chengyechun Date: Mon, 11 Dec 2023 19:16:45 +0800 Subject: [PATCH] add restart in ntpd.service --- ntp.spec | 8 +++++++- ntpd.service | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ntp.spec b/ntp.spec index 6181d58..0a90aec 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 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