I have edited /etc/init.d/bind9 to write the output of /sbin/ifconfig in a
logfile
Here's the edited version:

======================================
if [ -z "$(/sbin/ifconfig $IFCONFIG_OPTS)" ]; then
       #log_action_msg "No networks configured."
       echo "You are user $(/usr/bin/whoami)" >> /var/log/claudio-boot.log
       echo "Output of /sbin/ifconfig is" >> /var/log/claudio-boot.log
       echo $(/sbin/ifconfig) >> /var/log/claudio-boot.log
       return 1
    fi
======================================

And that's the output:

======================================
You are user root
Output of /sbin/ifconfig is

======================================

The blank row is in the logfile, meaning that I actually have a blank
output from /sbin/ifconfig

That prevents bind9 from starting at boot time, and I think it may be a
serious problem.

Here't the contents of /etc/network/interfaces

======================================
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
======================================

Can somebody help me?

Thanks,

Claudio

Reply via email to