Comment 41 for bug 596064

Revision history for this message
Vasya Pupkin (shadowlmd) wrote :

I added some debug into /etc/init/nmbd.conf so it looks like this:

===
description "NetBIOS name server"
author "Steve Langasek <email address hidden>"

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

expect fork
respawn

pre-start script
        NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null`
        echo `date` $NMBD_DISABLED >/tmp/upstart-nmdb.log

        [ "x$NMBD_DISABLED" = xYes ] && { stop; exit 0; }

        install -o root -g root -m 755 -d /var/run/samba
end script

exec nmbd -D
===

I was suspecting testparm to return something wrong, but instead, when I rebooted few times and nmbd didn't start again, I didn't even have /tmp/upstart-nmdb.log file which means it didn't hit pre-start script section. I have no idea how can that be. Both smbd.conf and nmbd.conf have "start on (local-filesystems and net-device-up IFACE=eth0)", but somehow first gets started and second doesn't.