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.

25 lines
467 B

  1. #!/bin/sh /etc/rc.common
  2. USE_PROCD=1
  3. START=50
  4. STOP=51
  5. PROG=/usr/sbin/stubby
  6. start_service() {
  7. procd_open_instance stubby
  8. procd_set_param command /usr/sbin/stubby
  9. procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
  10. procd_set_param limits core="unlimited"
  11. procd_set_param file /etc/stubby/stubby.yml
  12. procd_set_param stdout 1
  13. procd_set_param stderr 1
  14. procd_set_param user stubby
  15. procd_close_instance
  16. }