[Bug 836849] Re: Samba starts before static IPs set in network manager
Clint Byrum
clint at fewbar.com
Fri Sep 2 21:45:21 UTC 2011
Ok, after some discussion with Steve it appears this is unrelated to bug
#462169, and its only by mistake that /etc/network/if-up.d/samba is even
shipped.
It would appear that the currently supported way to bind samba to a
specific interface is to also change /etc/init/smbd.conf to be
start on (local-filesystems and net-device-up IFACE=ethX)
So that you can guarantee that it does not start until that specific
interface is up and ready.
Another option is to use
interfaces = ethX
instead of binding to a specific IP, so that smbd will just poll that
inteface and "just work" when it does get an IP.
Either way, it seems that smbd is doing the right thing in your
situation, but your configuration isn't supportable in the generic
sense. So unless we're missing something, you probably just need to
change /etc/init/smbd.conf to wait for the specific interface.
Closing as Invalid. Please feel free to re-open it by changing the
status to New if you have more information, or open a new bug report if
you feel that this one does not capture your problem appropriately.
Thanks for the report as well!
** Changed in: samba (Ubuntu)
Status: Incomplete => Invalid
--
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/836849
Title:
Samba starts before static IPs set in network manager
Status in “samba” package in Ubuntu:
Invalid
Bug description:
dylan at strut-google-server:/var/log/samba$ lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
_______________________________
dylan at strut-google-server:/var/log/samba$ apt-cache policy samba
samba:
Installed: 2:3.4.7~dfsg-1ubuntu3.7
Candidate: 2:3.4.7~dfsg-1ubuntu3.7
Version table:
*** 2:3.4.7~dfsg-1ubuntu3.7 0
500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
100 /var/lib/dpkg/status
2:3.4.7~dfsg-1ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
_____________________________________
Expect that samba will start up provided the interface assigned in
it's config has a static IP address.
Instead, Samba starts before the network manager manages to set up the static IP address on the machine.
See attached log file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/836849/+subscriptions
More information about the foundations-bugs
mailing list