Start and stop the samba server

Christophe Dumont C.Dumont at mercure.umh.ac.be
Thu Sep 24 06:22:13 GMT 1998


This is a simple script that kill every process linked to samba, and run
samba again.

kill -KILL `ps -ef | grep samba | awk '{print $2}'` 2>/dev/null
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D


But, if you change the smb.conf file, samba will re-read it with no problem.

-C. Dumont



More information about the samba mailing list