[Git][NTPsec/ntpsec][master] Improvements for systemd support from Tomáš Chvátal.

Eric S. Raymond gitlab at mg.gitlab.com
Sat Apr 15 10:35:03 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
079516d1 by Eric S. Raymond at 2017-04-15T06:34:06-04:00
Improvements for systemd support from Tomáš Chvátal.

- - - - -


2 changed files:

- + etc/ntp-wait.service
- etc/ntpd.service


Changes:

=====================================
etc/ntp-wait.service
=====================================
--- /dev/null
+++ b/etc/ntp-wait.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Wait for ntpd to synchronize system clock
+Requires=ntpd.service
+After=ntpd.service
+Conflicts=systemd-timesyncd.service
+Wants=time-sync.target
+Before=time-sync.target
+ConditionVirtualization=!container
+ConditionCapability=CAP_SYS_TIME
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/ntpwait -s 1 -n 30000
+RemainAfterExit=yes
+StandardOutput=null
+
+[Install]
+WantedBy=multi-user.target


=====================================
etc/ntpd.service
=====================================
--- a/etc/ntpd.service
+++ b/etc/ntpd.service
@@ -1,5 +1,9 @@
 [Unit]
 Description=Network Time Service
+Documentation=man:ntpd(1)
+Wants=network.target
+ConditionVirtualization=!container
+ConditionCapability=CAP_SYS_TIME
 After=network.target nss-lookup.target
 Conflicts=systemd-timesyncd.service
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/079516d1fea9cc7707c0ee351d827f5cfae2cb6f

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/079516d1fea9cc7707c0ee351d827f5cfae2cb6f
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/20170415/ca71e63f/attachment.html>


More information about the vc mailing list