[Samba] reload configuration without a stop ?

David Landgren landgren at gmail.com
Mon Jan 31 13:54:14 GMT 2005


You can send all the processes a HUP and they will reload the config.
Ordinarily this should not affect them (unless the config change is,
for instance, the suppression of a share they happen to be using).

smbstatus -p | tail +5 | awk '{print $1}' | xargs kill -HUP

The above should do the trick. Yes, there are probably killall or
killproc commands that do this, but they have the same name from one
OS or distro to another.

David


On Mon, 31 Jan 2005 11:46:21 +0100, fluppe <debian at searo.be> wrote:
> 
> Hello,
> 
> i am planning to use samba in my company, first on a test system and
> later on operational.
> I have a question about reloading the configuration file.
> 
> When i do some changes in the configuration file about mappings etc for
> new users, new folders on request etc and i have to reload the
> configuration, is that a problem for the connected users ?
> 
> Will they lose their connection while they are writing or saving or
> whatever ?
> 
> cheers,
> Phil.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
>


More information about the samba mailing list