1 description "dnscrypt-proxy startup script"
3 start on (local-filesystems and net-device-up IFACE=lo)
4 stop on runlevel [!2345]
7 # This is the home dir of user "dnscrypt"
8 # dnscrypt-proxy will chroot there for security reasons
11 #Load the AppArmor profile, otherwise it wouldn't be applied
12 /lib/init/apparmor-profile-load usr.sbin.dnscrypt-proxy || true
16 conffile="/etc/default/dnscrypt-proxy"
18 if test -r "$conffile"; then
19 params="$(grep -v '^#' $conffile | cut -d '#' -f 1 | grep -v '^resolvconf')"
20 for parameter in $params; do
21 test -n "$parameter" && options="$options --$parameter"
25 exec /usr/sbin/dnscrypt-proxy $options