add restart

(cherry picked from commit c0c546834b06d23d8d53e3a728d15c383458d8df)
This commit is contained in:
chengyechun 2023-12-18 16:17:20 +08:00 committed by openeuler-sync-bot
parent 99930e20c3
commit 3b7acc6f90
2 changed files with 9 additions and 2 deletions

View File

@ -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 <chengyechun1@huawei.com> - 4.2.8p14-10
- Type:bugfix
- ID:
- SUG:NA
- DESC:add restart to ntpd.service
* Wed Jun 21 2023 liubo <liubo335@huawei.com> - 4.2.8p14-9
- Type:bugfix
- ID:

View File

@ -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