[Git][NTPsec/ntpsec][master] systemd: Cleanup ntp-wait.service
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Nov 26 15:51:12 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
a905a761 by Richard Laager at 2017-11-26T15:50:23+00:00
systemd: Cleanup ntp-wait.service
It seems more proper to do WantedBy=time-sync.target, and it achieves
the proper effect. Then, WantedBy implies a reverse Before, so the
Before=time-sync.target is redundant.
I assume the original arrangement was copied from systemd-timesyncd.
That is more analogous to ntpd, not ntpwait. In fact, systemd needs to
add a systemd-timesyncd-wait (which would be analogous to ntp-wait):
https://github.com/systemd/systemd/issues/5097
- - - - -
1 changed file:
- etc/ntp-wait.service
Changes:
=====================================
etc/ntp-wait.service
=====================================
--- a/etc/ntp-wait.service
+++ b/etc/ntp-wait.service
@@ -3,8 +3,6 @@ Description=Wait for ntpd to synchronize system clock
Requisite=ntpd.service
After=ntpd.service
Conflicts=systemd-timesyncd.service
-Wants=time-sync.target
-Before=time-sync.target
ConditionVirtualization=!container
ConditionCapability=CAP_SYS_TIME
@@ -15,4 +13,4 @@ RemainAfterExit=yes
StandardOutput=null
[Install]
-WantedBy=multi-user.target
+WantedBy=time-sync.target
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a905a7618268c90e54fdd4d07aabfa04de6cf964
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a905a7618268c90e54fdd4d07aabfa04de6cf964
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171126/7adc85d1/attachment.html>
More information about the vc
mailing list