[Unit] Description=A tool for securing communications between a client and a DNS resolver. After=network.target # Only needed if you use pdnsd, other caching DNS servers can go here. Could be ignored too. #Before=pdnsd.service [Service] Type=forking PIDFile=/var/run/dnscrypt-proxy.pid EnvironmentFile=/etc/conf.d/dnscrypt-proxy ExecStartPre=/bin/rm -f /var/run/dnscrypt-proxy.pid ExecStart=/usr/bin/dnscrypt-proxy --daemonize \ --pidfile=/var/run/dnscrypt-proxy.pid \ --logfile=/var/log/dnscrypt-proxy.log \ --local-address=${DNSCRYPT_LOCALIP}:${DNSCRYPT_LOCALPORT} \ --user=${DNSCRYPT_USER} Restart=on-abort [Install] WantedBy=multi-user.target