aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/ntpd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox/ntpd.initd')
-rw-r--r--main/busybox/ntpd.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/busybox/ntpd.initd b/main/busybox/ntpd.initd
new file mode 100644
index 00000000000..9850b48800e
--- /dev/null
+++ b/main/busybox/ntpd.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+name="busybox $RC_SVCNAME"
+command="/usr/sbin/$RC_SVCNAME"
+command_args="${NTPD_OPTS:--N -p pool.ntp.org} -n"
+command_user="ntp"
+pidfile="/run/$SVCNAME.pid"
+command_background=true
+capabilities="^cap_sys_time"
+
+depend() {
+ need net
+ provide ntp-client
+ use dns
+}