Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: nmbd works sometimes, if u can tell me how U got a party< Next Oldest | Next Newest >
Ankuryu Offline





Group: Members
Posts: 24
Joined: Mar. 2006
Posted: Nov. 24 2006,07:56 QUOTE

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 ?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 24 2006,13:53 QUOTE

Place
sudo /etc/init.d/nmbd start
in a user login script, such as ~/.bash_profile
Back to top
Profile PM 
Ankuryu Offline





Group: Members
Posts: 24
Joined: Mar. 2006
Posted: Nov. 29 2006,07:09 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 29 2006,14:06 QUOTE

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.
Back to top
Profile PM 
3 replies since Nov. 24 2006,07:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: nmbd works sometimes

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code