You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
541 B

  1. #!/bin/sh /etc/rc.common
  2. USE_PROCD=1
  3. # starts before dnsmasq starts
  4. START=18
  5. # stops before networking stops
  6. STOP=89
  7. PROG=/usr/sbin/doh-client
  8. CONFIGFILE=/etc/dns-over-https/doh-client.conf
  9. start_service() {
  10. procd_open_instance
  11. procd_set_param command "$PROG" -conf "$CONFIGFILE"
  12. procd_set_param file "$CONFIGFILE"
  13. procd_set_param stdout 1
  14. procd_set_param stderr 1
  15. procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
  16. procd_close_instance
  17. }