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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: