summaryrefslogtreecommitdiff
path: root/repo/openntpd/openntpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'repo/openntpd/openntpd.initd')
-rw-r--r--repo/openntpd/openntpd.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/repo/openntpd/openntpd.initd b/repo/openntpd/openntpd.initd
new file mode 100644
index 0000000..dc9a9ae
--- /dev/null
+++ b/repo/openntpd/openntpd.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+name="NTP Server"
+command=/usr/sbin/ntpd
+command_args="-d $NTPD_OPTS"
+command_background=yes
+pidfile=/run/$RC_SVCNAME.pid
+required_files=/etc/ntpd.conf
+
+depend() {
+ need net
+ provide ntp-client
+ use dns logger
+}