1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/ntpsec/ntpsec.initd
FollieHiyuki 6747eeef28 community/ntpsec: fix init script and default configuration file
- 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.
2022-11-22 19:25:59 +00:00

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
}