Merge pull request #6707 from guidosarducci/master-fixup-stubby
[feed/packages.git] / net / stubby / files / stubby.init
1 #!/bin/sh /etc/rc.common
2
3 USE_PROCD=1
4
5 START=50
6 STOP=51
7
8 PROG=/usr/sbin/stubby
9
10 start_service() {
11 procd_open_instance stubby
12 procd_set_param command /usr/sbin/stubby
13
14 procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
15
16 procd_set_param file /etc/stubby/stubby.yml
17
18 procd_set_param stdout 1
19 procd_set_param stderr 1
20 procd_set_param user stubby
21 procd_close_instance
22 }
23