Package: bind9
Version: 1:9.8.1.dfsg.P1-4.3
Severity: normal

This does not work on HURD platform, because there is no ifconfig command:

[/etc/init.d/bind9]:
 36     if [ -z "$(/sbin/ifconfig $IFCONFIG_OPTS)" ]; then
 37        #log_action_msg "No networks configured."
 38        return 1
 39     fi


bind9 does not start up:
# /etc/init.d/bind9 start
[....] Starting domain name service...: bind9/etc/init.d/bind9: 36: 
/etc/init.d/bind9: /sbin/ifconfig: not found
[info] no networks configured.
 failed!

# rndc status
rndc: connect failed: 127.0.0.1#953: connection refused


-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99-486/Hurd-0.3
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bind9 depends on:
ii  adduser                      3.113+nmu3
ii  bind9utils                   1:9.8.1.dfsg.P1-4.3
ii  debconf [debconf-2.0]        1.5.46
ii  inetutils-tools [net-tools]  2:1.9-1+b1
ii  libbind9-80                  1:9.8.1.dfsg.P1-4.3
ii  libc0.3                      2.13-37
ii  libdns81                     1:9.8.1.dfsg.P1-4.3
ii  libgeoip1                    1.4.8+dfsg-4
ii  libgssapi-krb5-2             1.10.1+dfsg-3
ii  libisc83                     1:9.8.1.dfsg.P1-4.3
ii  libisccc80                   1:9.8.1.dfsg.P1-4.3
ii  libisccfg82                  1:9.8.1.dfsg.P1-4.3
ii  liblwres80                   1:9.8.1.dfsg.P1-4.3
ii  libssl1.0.0                  1.0.1c-4
ii  lsb-base                     4.1+Debian9
ii  netbase                      5.0

bind9 recommends no packages.

Versions of packages bind9 suggests:
pn  bind9-doc   <none>
ii  dnsutils    1:9.8.1.dfsg.P1-4.3
pn  resolvconf  <none>
pn  ufw         <none>

-- Configuration Files:
/etc/init.d/bind9 changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
OPTIONS=""
RESOLVCONF=no
test -f /etc/default/bind9 && . /etc/default/bind9
test -x /usr/sbin/rndc || exit 0
. /lib/lsb/init-functions
PIDFILE=/var/run/named/named.pid
check_network() {
    if [ -x /usr/bin/uname ] && [ "X$(/usr/bin/uname -o)" = XSolaris ]; then
        IFCONFIG_OPTS="-au"
    else
        IFCONFIG_OPTS=""
    fi
    #if [ -z "$(/sbin/ifconfig $IFCONFIG_OPTS)" ]; then
    #   #log_action_msg "No networks configured."
    #   return 1
    #fi
    return 0
}
case "$1" in
    start)
        log_daemon_msg "Starting domain name service..." "bind9"
        modprobe capability >/dev/null 2>&1 || true
        # dirs under /var/run can go away on reboots.
        mkdir -p /var/run/named
        chmod 775 /var/run/named
        chown root:bind /var/run/named >/dev/null 2>&1 || true
        if [ ! -x /usr/sbin/named ]; then
            log_action_msg "named binary missing - not starting"
            log_end_msg 1
        fi
        if ! check_network; then
            log_action_msg "no networks configured"
            log_end_msg 1
        fi
        if start-stop-daemon --start --oknodo --quiet --exec /usr/sbin/named \
                --pidfile ${PIDFILE} -- $OPTIONS; then
            if [ "X$RESOLVCONF" != "Xno" ] && [ -x /sbin/resolvconf ] ; then
                echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo.named
            fi
            log_end_msg 0
        else
            log_end_msg 1
        fi
    ;;
    stop)
        log_daemon_msg "Stopping domain name service..." "bind9"
        if ! check_network; then
            log_action_msg "no networks configured"
            log_end_msg 1
        fi
        if [ "X$RESOLVCONF" != "Xno" ] && [ -x /sbin/resolvconf ] ; then
            /sbin/resolvconf -d lo.named
        fi
        pid=$(/usr/sbin/rndc stop -p | awk '/^pid:/ {print $2}') || true
        if [ -z "$pid" ]; then          # no pid found, so either not running, 
or error
            pid=$(pgrep -f ^/usr/sbin/named) || true
            start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/named \
                    --pidfile ${PIDFILE} -- $OPTIONS
        fi
        if [ -n $pid ]; then
            sig=0
            n=1
            while kill -$sig $pid 2>/dev/null; do
                if [ $n -eq 1 ]; then
                    echo "waiting for pid $pid to die"
                fi
                if [ $n -eq 11 ]; then
                    echo "giving up on pid $pid with kill -0; trying -9"
                    sig=9
                fi
                if [ $n -gt 20 ]; then
                    echo "giving up on pid $pid"
                    break
                fi
                n=$(($n+1))
                sleep 1
            done
        fi
        log_end_msg 0
    ;;
    reload|force-reload)
        log_daemon_msg "Reloading domain name service..." "bind9"
        if ! check_network; then
            log_action_msg "no networks configured"
            log_end_msg 1
        fi
        /usr/sbin/rndc reload >/dev/null && log_end_msg 0 || log_end_msg 1
    ;;
    restart)
        if ! check_network; then
            log_action_msg "no networks configured"
            exit 1
        fi
        $0 stop
        $0 start
    ;;
    
    status)
        ret=0
        status_of_proc -p ${PIDFILE} /usr/sbin/named bind9 2>/dev/null || ret=$?
        exit $ret
        ;;
    *)
        log_action_msg "Usage: /etc/init.d/bind9 
{start|stop|reload|restart|force-reload|status}"
        exit 1
    ;;
esac
exit 0


-- debconf information:
  bind9/different-configuration-file:
  bind9/run-resolvconf: false
  bind9/start-as-user: bind


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to