mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 15:33:55 +02:00
cb11e7fb93
Remove rc_reload=NO to allow sending -HUP to load extra config files
(e.g., ${LOCALSTATEDIR}/dnscrypt-proxy/blocked-names.txt). This is an
alternative to the new feature enable_hot_reload, which can be set to
false. Note that the main config file ${SYSCONFDIR}/dnscrypt-proxy.toml
cannot be reloaded.
changelog:
https://github.com/DNSCrypt/dnscrypt-proxy/releases/tag/2.1.13
From Igor Zornik <mocheryl at mocheryl dot org> with README tweaks from me
17 lines
262 B
Bash
17 lines
262 B
Bash
#!/bin/ksh
|
|
|
|
daemon="${TRUEPREFIX}/bin/dnscrypt-proxy"
|
|
daemon_flags="-config ${SYSCONFDIR}/dnscrypt-proxy.toml"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}.*"
|
|
|
|
rc_bg=YES
|
|
|
|
rc_configtest() {
|
|
${daemon} ${daemon_flags} -check
|
|
}
|
|
|
|
rc_cmd $1
|