Wins server not working on startup–only works after restarting samba
Looking at netstat for my wins server I noticed that it was only listening to port 139 on 127.0.0.1 after a reboot. Then if I restarted samba, it was listening to port 139 on both 127.0.0.1 and eth0. Apparently smbd was starting before eth0 was up. Samba is an upstart job at this point so I looked at the file /etc/init/smbd.conf. The significant line was this one:
start on (local-filesystems and net-device-up)
It seems to assume that as soon as 127.0.0.1 is up, that smbd is good to go. That’s fine for a samba desktop but not for a wins server.
I edited the line to read:
start on (local-filesystems and net-device-up IFACE=eth0)
And my wins server now works on reboot.