nmbd works sometimes


Forum: Networking
Topic: nmbd works sometimes
started by: Ankuryu

Posted by Ankuryu on Nov. 24 2006,07:56
Hi  U intelligent guys.  Salutations from a dumb newbie

well I got this samba installed. and I cannot manage nmbd to start sometimes whereas smbd is always there
can anyone tell me how to start the nmbd daemon once the box has booted and a user logged in , in the event nmbd has not started ?

Posted by ^thehatsrule^ on Nov. 24 2006,13:53
Place
sudo /etc/init.d/nmbd start
in a user login script, such as ~/.bash_profile

Posted by Ankuryu on Nov. 29 2006,07:09
pardon me Sir,
but I think that  "nmbd start" would not work
nmbd can take param -i as immedeate and -D as Daemon.
I tried the immedeate param -i, but it does not run saying
Quote

debug_parse_params : unrecognised debug class name or format [0]
standard input is not a socket, assuming -D option
ERROR: can't open /var/locks/nmbd.pid : Error was file exists

Should I delete this file ? and try it ?
what is this pid file for ?
seems both smbd and nmbd generate these pid files

Posted by ^thehatsrule^ on Nov. 29 2006,14:06
That file is created when nmbd is running. I think pid = process id

You could place something like
Code Sample
if ! [ -f /var/locks/nmdb.pid ]
 #Start nmbd here how I like to
fi


Essentially this looks if that file is there - if it is, it assumes nmdb is running.  If not, it will run nmdb.  I suppose you could also do a `ps -Ax|grep nmdb`.

Also, you'll probably need root perms, so you might have to prepend sudo or do something similar.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.