Updating smb.conf without restarting samba
Luke Kenneth Casson Leighton
lkcl at switchboard.net
Fri Aug 29 17:51:31 GMT 1997
On Sat, 30 Aug 1997, Eloy A. Paris wrote:
> Luke Kenneth Casson Leighton <lkcl at switchboard.net> wrote:
> : samba should stat all its files, and re-read the config files (and all
> : sub-config files rad from include = option).
> Does this mean that the Samba daemons (smbd and nmbd) are always sampling
> the smb.conf file
no, they stat it.
> to see if it has changed and if it has, they re-read
> it? Isn't this a perfomance hit?
not really. the stat is only carried out on an idle loop (between 5 to
20 seconds - i don't know. it's a #define in smb.h)
> : if it _desn't, then do a kill -HUP to get it to re-read.
> nmbd.c (line 89) has this debug message in the HUP signal handler:
> DEBUG(0,("Got SIGHUP (reload not implemented)\n"));
> Is this "reload not implemented" a leftover from older versions that
> has to be cleaned or it is for real?
it's for real. one of the things that needs to be implemented is
interface reloading. it wasn't in the version that i started at
(1.9.15p6) and i didn't get round to adding it. if it had been in, i
would have maintained it. short-sighted, really.
More information about the samba