Comment 3 for bug 1078699

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Ok, first off, winbind.conf has this old relic start on

start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]

This will start winbind as soon as *any* network interface is up, which is not what we want. The appropriate conditions are:

start on runlevel [2345]
stop on runlevel [^2345]

This will make sure that winbind waits for all of the interfaces in /etc/network/interfaces to be up.

Now, in the lsb-init script from Debian:

# Should-Start: samba

This means that winbind needs to ensure samba is started before it starts. Now, samba is broken up into smbd and nmbd in the Ubuntu packages. So the pre-start should really have this:

if [ -f /etc/init/smbd.conf ] ; then
    start wait-for-state WAITER=winbind WAIT_FOR=smbd
fi
# repeat for nmbd

However, its not entirely clear if any of this will actually solve the issue reported here. Nevertheless, its stuff that needs to happen.

Diego, is there any way you can look through the logs on an affected system and find the error messages from winbind? I thin it logs somewhere in /var/log/samba.