1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/htpdate/htpdate.initd
omni e14c0c5144 community/htpdate: move from testing
- use boring URLs in default config
- prefix URLs in default config  with http:// to make it obvious what
  protocol is being used, and how to configure to make requests over
  HTTPS
- set default config to drop privileges to ntp user
- update init script
2024-11-25 14:32:43 +00:00

12 lines
221 B
Bash

#!/sbin/openrc-run
name="HTTP Time Protocol service"
command=/usr/sbin/htpdate
pidfile=/run/htpdate.pid
command_args="-D -i $pidfile $HTP_OPTIONS $HTP_SERVERS"
depend() {
need net
provide ntp-client
use dns logger
}