2017-07-13 16:09:42 +03:00
|
|
|
#!/usr/bin/env ssm
|
2014-07-21 18:09:49 +02:00
|
|
|
|
|
|
|
# soft depend, OR return 1 for hard depend
|
|
|
|
depends dnscrypt-backup
|
|
|
|
|
2017-12-10 20:44:17 +03:00
|
|
|
service_command=(
|
|
|
|
'/usr/bin/dnscrypt-proxy'
|
2015-12-17 12:49:30 +03:00
|
|
|
"--local-address=${local_ip}:${local_port}"
|
|
|
|
"--resolver-address=${resolver_ip}:${resolver_port}"
|
|
|
|
"--provider-name=${provider_name}"
|
|
|
|
"--provider-key=${provider_key}"
|
|
|
|
"--user=${local_user}"
|
|
|
|
)
|