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

===
description "NetBIOS name server"
author      "Steve Langasek <steve.langa...@ubuntu.com>"

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.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to