I added some debug into /etc/init/nmbd.conf so it looks like this:
===
description "NetBIOS name server"
author "Steve Langasek <[email protected]>"
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
Bugs, which is subscribed to 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-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs