Alex,

Thanks for that. Yes, I had that problem a while back (it caused me
problems with hddtemp daemon), so it's not that this time around, I'm
pretty sure.

Now, FWIW, I've written a quick'n'dirty script that makes samba wait at
startup until the interfaces listed in "interfaces = " in smb.conf are
all up.

I've written this as a separate script that I keep in /usr/local/sbin
/samba-netif-wait (attached) and I just stick a call to it into
/etc/init.d/samba (as per the diff below). I've done it this way so I
can easily re-use it if/when /etc/init.d/samba gets clobbered by an
update.

It works for me, causes no noticeable delay at boot-time, and might help
someone else before this is fixed properly... if that ever happens.

Emmet.


--==[ BEGIN PATCH ]==--------------------------------------------------
--- /etc/init.d/samba~  2007-11-16 22:23:59.000000000 +0100
+++ /etc/init.d/samba   2007-12-13 17:52:23.000000000 +0100
@@ -31,6 +31,10 @@
 case "$1" in
        start)
                log_daemon_msg "Starting Samba daemons"
+               if ! /usr/local/sbin/samba-netif-wait; then
+                       log_failure_msg "Network interfaces implied by smb.conf 
are not up"
+                       exit 1
+               fi
                # Make sure we have our PIDDIR, even if it's on a tmpfs
                 install -o root -g root -m 755 -d $PIDDIR

--==[ END PATCH
]==------------------------------------------------------


** Attachment added: "samba-netif-wait"
   http://launchpadlibrarian.net/10891102/samba-netif-wait

-- 
Samba does not start on boot.
https://bugs.launchpad.net/bugs/125687
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to