Preparing to unpack .../dnscrypt-proxy_1.6.0-2_amd64.deb ... Unpacking dnscrypt-proxy (1.6.0-2) ... Processing triggers for man-db (2.7.4-1) ... Processing triggers for systemd (225-1ubuntu9) ... Processing triggers for ureadahead (0.100.0-19) ... ureadahead will be reprofiled on next reboot Setting up dnscrypt-proxy (1.6.0-2) ... Configuration file '/etc/init.d/dnscrypt-proxy' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** dnscrypt-proxy (Y/I/N/O/D/Z) [default=N] ? d [?1049h[?1h= --- /etc/init.d/dnscrypt-proxy 2015-11-15 17:47:45.257730399 +0000 +++ /etc/init.d/dnscrypt-proxy.dpkg-new 2015-07-29 05:24:39.000000000 +0100 @@ -1,45 +1,93 @@ -#! /bin/sh +#!/bin/sh -e + ### BEGIN INIT INFO # Provides: dnscrypt-proxy -# Required-Start: $local_fs $network -# Required-Stop: $local_fs +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Should-Start: $network $syslog +# Should-Stop: $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: dnscrypt-proxy -# Description: dnscrypt-proxy secure DNS client +# Short-Description: Start and stop dnscrypt-proxy +# Description: dnscrypt-proxy is Domain Name resolver with extra security +# features and enhanced privacy. ### END INIT INFO : -# Authors: https://github.com/simonclausen/dnscrypt-autoinstall/graphs/contribu : tors : -# Project site: https://github.com/simonclausen/dnscrypt-autoinstall : +PATH=/sbin:/bin:/usr/sbin:/usr/bin : + : +. /lib/lsb/init-functions : + : +DNSCRYPT_PROXY_BIN=/usr/sbin/dnscrypt-proxy : +DNSCRYPT_PROXY_USER=_dnscrypt-proxy : +DNSCRYPT_PROXY_PIDFILE=/run/dnscrypt-proxy.pid : +DNSCRYPT_PROXY_CONF=/etc/default/dnscrypt-proxy : +DNSCRYPT_PROXY_HOME=/run/dnscrypt-proxy : +DNSCRYPT_PROXY_OPTIONS="" : +DNSCRYPT_PROXY_LOCAL_ADDRESS="127.0.2.1:53" : +DNSCRYPT_PROXY_RESOLVER_NAME=cisco : + : +# Exit if the package is not installed : +[ -x "${DNSCRYPT_PROXY_BIN}" ] || exit 0 : + : +[ -r "${DNSCRYPT_PROXY_CONF}" ] && . "${DNSCRYPT_PROXY_CONF}" :  : -PATH=/usr/sbin:/usr/bin:/sbin:/bin : -DAEMON=/usr/local/sbin/dnscrypt-proxy : -NAME=dnscrypt-proxy : -ADDRESS1=77.66.84.233 : -ADDRESS2=176.56.237.171 : -PNAME1=2.dnscrypt-cert.resolver2.dnscrypt.eu : -PNAME2=2.dnscrypt-cert.resolver1.dnscrypt.eu : -PKEY1=3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0 : A:9955 : -PKEY2=67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:118 : 5:9C66 :  :  case "$1" in : - start) : - echo "Starting $NAME" : - $DAEMON --daemonize --ephemeral-keys --user=dnscrypt --local-address=127.0. : 0.1 --resolver-address=$ADDRESS1 --provider-name=$PNAME1 --provider-key=$PKEY1 : - $DAEMON --daemonize --ephemeral-keys --user=dnscrypt --local-address=127 : .0.0.2 --resolver-address=$ADDRESS2 --provider-name=$PNAME2 --provider-key=$PKEY : 2 : - ;; : - stop) : - echo "Stopping $NAME" : - pkill -f $DAEMON : - ;; : - restart) : - $0 stop : - $0 start : - ;; : - *) : - echo "Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}" : - exit 1 : - ;; : + start) : + log_daemon_msg "Starting dnscrypt proxy service..." "dnscrypt-proxy" : + : + [ -d "${DNSCRYPT_PROXY_HOME}" ] || \ : + mkdir -m 0555 "${DNSCRYPT_PROXY_HOME}" : + : + if start_daemon -p "${DNSCRYPT_PROXY_PIDFILE}" ${DNSCRYPT_PROXY_BIN} \ : + --pidfile "${DNSCRYPT_PROXY_PIDFILE}" \ : + --daemonize \ : + --user="${DNSCRYPT_PROXY_USER}" \ : + --local-address="${DNSCRYPT_PROXY_LOCAL_ADDRESS}" \ : + --resolver-name="${DNSCRYPT_PROXY_RESOLVER_NAME}" \ : + $DNSCRYPT_PROXY_OPTIONS; then : + if [ -x /sbin/resolvconf ]; then : + echo "nameserver ${DNSCRYPT_PROXY_LOCAL_ADDRESS}" \ : + | cut -d ':' -f 1 \ : + | /sbin/resolvconf -a lo.dnscrypt-proxy : + fi : + log_success_msg : + else : + log_failure_msg : + fi : + ;; : + : + stop) : + log_daemon_msg "Stopping dnscrypt proxy service..." "dnscrypt-proxy" : + : + if [ -x /sbin/resolvconf ]; then : + /sbin/resolvconf -d lo.dnscrypt-proxy : + fi : + : [?1l>[?1049l Configuration file '/etc/init.d/dnscrypt-proxy' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** dnscrypt-proxy (Y/I/N/O/D/Z) [default=N] ? i Installing new version of config file /etc/init.d/dnscrypt-proxy ... A dependency job for dnscrypt-proxy.service failed. See 'journalctl -xe' for details. invoke-rc.d: initscript dnscrypt-proxy, action "start" failed. dpkg: error processing package dnscrypt-proxy (--configure): subprocess installed post-installation script returned error exit status 1