update service file for systemd-timedated-ntp target (#816493)
This commit is contained in:
parent
31347b716d
commit
f56b1f8683
@ -66,7 +66,8 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/{lib,log}/chrony
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/dispatcher.d
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dhcp/dhclient.d
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/systemd/system/systemd-timedated-ntp.target.wants
|
||||
|
||||
|
||||
install -m 644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/chrony.conf
|
||||
install -m 640 -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/chrony.keys
|
||||
@ -82,6 +83,9 @@ install -m 644 -p %{SOURCE9} \
|
||||
|
||||
touch $RPM_BUILD_ROOT%{_localstatedir}/lib/chrony/{drift,rtc}
|
||||
|
||||
ln -sf ../chronyd.service \
|
||||
$RPM_BUILD_ROOT/lib/systemd/system/systemd-timedated-ntp.target.wants
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -132,6 +136,7 @@ fi
|
||||
%{_libexecdir}/chrony-helper
|
||||
%{_infodir}/chrony.info*
|
||||
/lib/systemd/system/chrony*.service
|
||||
/lib/systemd/system/systemd-timedated-ntp.target.wants
|
||||
%{_mandir}/man[158]/%{name}*.[158]*
|
||||
%dir %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony
|
||||
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
|
||||
|
@ -2,6 +2,7 @@
|
||||
Description=NTP client/server
|
||||
After=syslog.target ntpdate.service
|
||||
Conflicts=ntpd.service
|
||||
BindTo=systemd-timedated-ntp.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
|
Loading…
Reference in New Issue
Block a user