[Lunar-commits] <moonbase> ntp: Adding a systemd service and adjusting DEPENDS.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Wed Aug 24 12:53:12 CEST 2011


commit 2f19ca8b4cf41c758d06bd87a24ad041278fed9e
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Wed Aug 24 06:53:12 2011 -0400

    ntp: Adding a systemd service and adjusting DEPENDS.
---
 net/ntp/DEPENDS                |    1 +
 net/ntp/systemd.d/ntpd.service |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/net/ntp/DEPENDS b/net/ntp/DEPENDS
index 30cb4d8..6cca2e2 100644
--- a/net/ntp/DEPENDS
+++ b/net/ntp/DEPENDS
@@ -1,3 +1,4 @@
 depends readline
 
 optional_depends  "libcap"  ""  ""  "use POSIX 1003.1e capabilities"
+optional_depends  "systemd" ""  ""  "for systemd style init services"
diff --git a/net/ntp/systemd.d/ntpd.service b/net/ntp/systemd.d/ntpd.service
new file mode 100644
index 0000000..6c96aac
--- /dev/null
+++ b/net/ntp/systemd.d/ntpd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Network Time Service
+
+[Service]
+Type=forking
+PIDFile=/var/run/ntpd.pid
+EnvironmentFile=/etc/ntp.conf
+ExecStart=/usr/sbin/ntpd $NTPD_ARGS -p /var/run/ntpd.pid
+
+[Install]
+WantedBy=multi-user.target


More information about the Lunar-commits mailing list