Re: [K12OSN] smb restart

Dan Young (dan_young@parkrose.k12.or.us)
09 Oct 2002 12:49:29 -0700


On Wed, 2002-10-09 at 12:13, Yan Seiner wrote:
> On St, 2002-10-09 at 14:55, Ritchie, Josiah wrote:
> > If I do an SMB RESTART while people are using SMB shares, will I cause
> > disruption?  What will I really happen?  I forgot to include --with-smbmount
> > when I compiled and had to recompile.
> 
> Fortunately, SMB was designed to accomodate unreliable servers.  You can
> restart samba pretty much at will; the only problems we see is that
> people get spurious locks - they might have to save their file with a
> different name.  They might get an "file is in use" error.

You might try rolling your own smb reload command, if you just need to
reread /etc/samba/smb.conf

Add this to /etc/rc.d/init.d/smb after the restart statement:

  reload)
        echo -n "Re-reading smb.conf: "
        kill -HUP `cat /var/run/samba/smbd.pid`
        echo "done."
        ;;

That may need to be tweaked if your samba.pid is in another location.
Then you can do a "service smb reload" or "/etc/rc.d/init.d/smb reload"
to re-read the config file w/o disrupting any connections.

-Dan Young
-Parkrose School District



_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see