mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
- The daemon still checks the statistics directory on start up even though no logging is configured there - The daemon needs to be started as root before dropping to ntp user. - nopeer option seems to be deprecated.
16 lines
310 B
Bash
16 lines
310 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}"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
# allow setting system time
|
|
capabilities="^cap_sys_time"
|
|
|
|
depend() {
|
|
need net
|
|
provide ntp-client
|
|
use dns
|
|
}
|