add restart in ntpd.service

This commit is contained in:
chengyechun 2023-12-11 19:16:45 +08:00
parent b8f396ef22
commit 5e989dc92c
2 changed files with 8 additions and 1 deletions

View File

@ -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 <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
- Type:enhancement
- 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