!83 [sync] PR-81: add restart to ntpd.service

From: @openeuler-sync-bot 
Reviewed-by: @robertxw 
Signed-off-by: @robertxw
This commit is contained in:
openeuler-ci-bot 2023-12-20 06:48:34 +00:00 committed by Gitee
commit f7293a9caf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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/
@ -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