nmbd works sometimesForum: 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 newbiewell 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
Placesudo /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
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 idYou could place something like
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. |