[Bug 596064] Re: nmbd fails to start on boot - problem with upstart
Vasya Pupkin
596064 at bugs.launchpad.net
Sat Apr 28 03:37:46 UTC 2012
I added some debug into /etc/init/nmbd.conf so it looks like this:
===
description "NetBIOS name server"
author "Steve Langasek <steve.langasek at 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
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064
Title:
nmbd fails to start on boot - problem with upstart
Status in “samba” package in Ubuntu:
Fix Released
Status in “samba” source package in Lucid:
Confirmed
Status in “samba” source package in Maverick:
Triaged
Bug description:
Binary package hint: samba
1. Release of Ubuntu is 10.04 LTS
2. Version of Samba is - 3.4.7
Problem - Expected nmbd service to start at boot but it failed to
start at boot. We have multiple systems but this problem has been
noticed only on certain systems. The same packages were installed on
all systems. As a workaround, we changed the pre start script
configuration file for nmbd - /etc/init/nmbd.conf to make it start at
boot always. The following 2 lines were commented in the nmbd.conf
file -
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null`
[ "x$NMBD_DISABLED" = xYes ] && { stop; exit 0; }
I don't think that I understand what the second line is trying to do.
Please check and advise how to fix this problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions
More information about the foundations-bugs
mailing list