[Samba] how to use more samba process and interfaces safely!?

Farkas Levente lfarkas at bppiac.hu
Mon Jan 12 15:17:50 GMT 2004


hi,
is it possible to use more than one samba process on one system and bind 
them to different interfaces? I know yes. but how can I start and stop 
them? currently the initscripts start like:
----------------------------------
smbd -D
nmbd -D
----------------------------------
it's ok, but stop as:
----------------------------------
## we have to get all the smbd process here instead of just the
## main parent (i.e. killproc) because it can take a long time
## for an individual process to process a TERM signal
smbdpids=`ps guax | grep smbd | grep -v grep | awk '{print $2}'`
for pid in $smbdpids; do
	kill -TERM
done
## nmbd is ok to kill using killproc()
killproc nmbd -TERM
----------------------------------
which is not possible since in this case I always have to stop all smaba 
servers. is there any other way? even if they are slower the the current 
solution.
thanks in advance.
yours.

-- 
   Levente                               "Si vis pacem para bellum!"




More information about the samba mailing list