[Samba] reloading smb.conf
Tom Syroid
tom at syroidmanor.com
Wed Feb 20 07:31:30 GMT 2002
Very elegant, Dave. Thanks for this! I'm doing a clean CVS install of 3.0
today so I'll give it a workout for you.
Best,
/tom
--On Wednesday, February 20, 2002 15:17 +0000 Dave.Stevenson at durham.ac.uk
wrote:
> !/bin/sh
>#
># ident "@(#)startsmb 98/01/06 SMI"
>#
># DLS 2-9-99 Update for multiple server supprot
># kick samba
>
> kickproc() { # HUP the named process(es)
> pid=`/usr/bin/ps -e |
> /usr/bin/grep -w $1 |
> /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
> [ "$pid" != "" ] && kill -HUP $pid
> }
>
> # kick the samba smb deamon
> server=`hostname` ; export server
> kickproc smbd
> echo "smbd done"
> kickproc nmbd
> echo "nmbd done"
> /bin/csh -c 'echo \"New Samba config registered on server \" \
> |/usr/local/samba/bin/smbclient -M $server -n MYCLIENT'
> tail -f /usr/local/samba/var/log.smb
>
>
> works for me...of course - the effects on clients depend on changes you
> made to smb.conf ;-)
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list