!79 update ntpd.service

From: @chengyechun 
Reviewed-by: @robertxw 
Signed-off-by: @robertxw
This commit is contained in:
openeuler-ci-bot 2023-12-14 02:11:32 +00:00 committed by Gitee
commit cc98bbb71d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Name: ntp Name: ntp
Version: 4.2.8p17 Version: 4.2.8p17
Release: 1 Release: 2
Summary: A protocol designed to synchronize the clocks of computers over a network Summary: A protocol designed to synchronize the clocks of computers over a network
License: MIT and BSD and BSD with advertising License: MIT and BSD and BSD with advertising
URL: https://www.ntp.org/ URL: https://www.ntp.org/
@ -207,6 +207,12 @@ make check
%{_mandir}/man8/*.8* %{_mandir}/man8/*.8*
%changelog %changelog
* Mon Dec 11 2023 chengyechun <chengyechun1@huawei.com> - 4.2.8p17-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Restart in ntpd.service
* Fri Jul 21 2023 chengyechun <chengyechun1@huawei.com> - 4.2.8p17-1 * Fri Jul 21 2023 chengyechun <chengyechun1@huawei.com> - 4.2.8p17-1
- Type:enhancement - Type:enhancement
- ID: - ID:

View File

@ -8,6 +8,7 @@ Type=forking
EnvironmentFile=-/etc/sysconfig/ntpd EnvironmentFile=-/etc/sysconfig/ntpd
ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS
PrivateTmp=true PrivateTmp=true
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target