It sounds like samba may be starting before the network is fully initialized and thus not working until a restart. There may be some interesting information in /var/log/samba/log.smbd.
I would suggest trying to delay the startup of smbd by altering the /etc/init/smbd.conf file; specifically the "start on" line. Suggested alternatives to try are:
Code:
start on (local-filesystems and net-device-up IFACE!=lo)
...to match the contents of /etc/init/nmbd.conf, or:
Code:
start on (local-filesystems and net-device-up IFACE=eth0)
...replace eth0 with the name of your actual network interface, or even:
Code:
start on (local-filesystems and net-device-up IFACE=eth0 and started udev-finish)
...so that it waits until udev completes its magic.
Bookmarks