immortalwrt/package/jsda/dnscrypt-proxy-full/files/etc/init.d/dnscrypt-proxy
2019-07-02 18:48:34 +08:00

20 lines
415 B
Bash
Executable File

#!/bin/sh /etc/rc.common
USE_PROCD=1
# starts before dnsmasq starts
START=95
# stops before networking stops
STOP=10
PROG=/usr/bin/dnscrypt-proxy
CONFIGFILE=/etc/dnscrypt-proxy/dnscrypt-proxy.toml
start_service() {
procd_open_instance
procd_set_param command "$PROG" -config "$CONFIGFILE"
procd_set_param file "$CONFIGFILE"
procd_set_param respawn
procd_close_instance
}