mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
On boot, if the internet isn't available OpenRC will report ntpsec as crashed, even though the service is still running.
18 lines
338 B
Bash
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
|
|
}
|