You are not logged in.

#1 2009-09-06 20:06:15

Sander
Member
Registered: 2006-02-26
Posts: 138

[SOLVED] nmbd not starting

I have rc.conf set up so samba is started at boot:

DAEMONS=(syslog-ng @network @crond @fam @alsa @hal @openntpd @cups @samba @smbnetfs)

For some reason, however, this never starts nmbd. smbd is started up correctly. This is quite strange because judging from the contents of the /etc/rc.d/samba script, it should start both.

Whats weird is that /var/log/samba/log.nmbd does mention that it starts up:

[2009/09/06 21:22:50,  0] nmbd/nmbd.c:main(850)
  nmbd version 3.3.7 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/09/06 21:22:50,  0] nmbd/nmbd.c:open_sockets(686)

But once I login:

[sander@arch ~]$ ps -ef | grep nmbd
sander    4853  4272  0 22:03 pts/0    00:00:00 grep nmbd

... no nmbd running.

It works fine when I run it manually:

[sander@arch ~]$ sudo nmbd
[sander@arch ~]$ ps -ef | grep nmbd
root      4858     1  0 22:04 ?        00:00:00 nmbd
sander    4860  4272  0 22:04 pts/0    00:00:00 grep nmbd

The output in log.nmbd is a bit different in this case:

[2009/09/06 22:04:46,  0] nmbd/nmbd.c:main(850)
  nmbd version 3.3.7 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2009/09/06 22:04:46,  0] nmbd/nmbd.c:main(878)
  standard input is not a socket, assuming -D option

Does anybody know what's going on here? It's really annoying that shares can only be accessed by IP, not by hostname (that is what nmbd is for, right?)
Thanks in advance.

Last edited by Sander (2009-09-09 09:22:16)


You like cheese? You like peas? You'll love cheezy peas!

Offline

#2 2009-09-06 23:24:28

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: [SOLVED] nmbd not starting

Does it also start fine if you run /etc/rc.d/samba restart? You could try to remove the @ from @samba to see if not backgrounding its startup makes any difference, and also possibly doing the same to @network in case nmbd is looking for some networking stuff that isn't quite ready at initial startup.

Offline

#3 2009-09-08 15:49:08

Sander
Member
Registered: 2006-02-26
Posts: 138

Re: [SOLVED] nmbd not starting

"/etc/rc.d/samba restart" brings it up just fine. You are probably correct. It kinda makes sense, too, although I think the @network does more harm than @samba. I'll test both, just to be sure. Thanks!

EDIT: I removed the @ from "network", and now it starts up just fine. I'll have to live with a few more seconds added to my boot time, I guess smile
Thanks again!

Last edited by Sander (2009-09-09 09:21:36)


You like cheese? You like peas? You'll love cheezy peas!

Offline

Board footer

Powered by FluxBB