aports/main/busybox/ntpd.initd
2024-11-13 18:39:29 +01:00

15 lines
305 B
Bash

#!/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,^cap_net_bind_service"
depend() {
need net
provide ntp-client
use dns
}