Steve Langasek <[EMAIL PROTECTED]> wrote: > On Fri, Oct 03, 2008 at 10:53:13PM +0200, Juergen Stuber wrote: > > Package: samba > > Version: 2:3.2.3-1 > > Severity: normal > > > smbd and nmbd failed to start up at boot, I started them manually from swat. > > It seems this is due to the network not being up at the time, > > it only comes up some seconds later. > > Why is this? On a normal Debian system, the network is brought up in > runlevel S (/etc/rcS.d/S40networking), whereas network servers such as samba > aren't started until runlevel 2 (/etc/rc2.d/S20samba). Why is this not the > case on your system?
The system is a standard Debian testing with minimal work to get Backuppc and Samba running, no manual changes to networking stuff. /etc/rcS.d/S40networking is there and looks fine, same for /etc/network/interfaces: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp > Even if you were letting NetworkManager handle all of your network > interfaces, the loopback interface should still be brought up by > /etc/rcS.d/S40networking, AFAIK. and that's sufficient to let smbd start, I checked, it starts up with loopback only (after ifdown eth0). > unless you have made some atypical changes to the 'interfaces' line in your > smb.conf. [EMAIL PROTECTED]:~$ grep interfaces /etc/samba/smb.conf interfaces = 127.0.0.1/8, 10.158.2.0/24 bind interfaces only = Yes This seems to be a spurious problem, I just did three reboots, the first two went well, it happened again on the third one. Jürgen # Samba config file created using SWAT # from UNKNOWN () # Date: 2008/10/03 10:42:10 [global] server string = Samba file server for M740AV interfaces = 127.0.0.1/8, 10.158.2.0/24 bind interfaces only = Yes update encrypted = Yes client schannel = No server schannel = No allow trusted domains = No obey pam restrictions = Yes guest account = smbguest passwd program = /usr/bin/passwd '%u' passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n passwd chat timeout = 120 username map = /etc/samba/smbusers password level = 6 username level = 6 unix password sync = Yes log file = /var/log/samba/samba.log max log size = 1000 name resolve order = wins lmhosts bcast client signing = No client use spnego = No socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 load printers = No printcap name = cups machine password timeout = 120 add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u' delete user script = /usr/sbin/userdel '%u' add group script = /usr/sbin/groupadd '%g' delete group script = /usr/sbin/groupdel '%g' add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u' delete user from group script = /usr/sbin/userdel '%u' '%g' add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u' logon script = %G.bat logon path = \\%L\profiles\%u logon drive = m: logon home = \\%L\homes\%u os level = 33 local master = No domain master = No dns proxy = No remote announce = 10.158.2.255 remote browse sync = 10.158.2.255 idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /dev/null winbind separator = @ winbind cache time = 360 winbind use default domain = Yes winbind trusted domains only = Yes winbind nested groups = No winbind nss info = no hosts allow = 127., 10.158.2. cups options = raw follow symlinks = No [M740AV] comment = M740AV Media path = /media/m740av read only = No locking = No share modes = No -- Jürgen Stuber <[EMAIL PROTECTED]> http://www.jstuber.net/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]