aports/community/ntpsec/ntpsec.initd
Hoang Nguyen 5d09e12a67 community/ntpsec: run daemon service on foreground
On boot, if the internet isn't available OpenRC will report ntpsec as
crashed, even though the service is still running.
2023-04-02 15:02:12 +00:00

18 lines
338 B
Bash

#!/sbin/openrc-run
name="ntpsec"
description="NTP reference implementation focused on security"
command="/usr/sbin/ntpd"
command_args="${NTPD_OPTS:--g -N -u ntp:ntp} -n"
pidfile="/run/$RC_SVCNAME.pid"
command_background="yes"
# allow setting system time
capabilities="^cap_sys_time"
depend() {
need net
provide ntp-client
use dns
}