summaryrefslogtreecommitdiff
path: root/repo/system/openntpd/openntpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system/openntpd/openntpd.initd')
-rw-r--r--repo/system/openntpd/openntpd.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/repo/system/openntpd/openntpd.initd b/repo/system/openntpd/openntpd.initd
new file mode 100644
index 0000000..dc9a9ae
--- /dev/null
+++ b/repo/system/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
+}