mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
- 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
12 lines
221 B
Bash
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
|
|
}
|