[Samba] hosts allow option is not applaying without restart smbd

Reindl Harald h.reindl at thelounge.net
Thu Jun 21 13:31:17 UTC 2018



Am 21.06.2018 um 15:23 schrieb Rowland Penny via samba:
> On Thu, 21 Jun 2018 19:17:14 +0700
> Vladimir Eltsov via samba <samba at lists.samba.org> wrote:
> 
>> Hello.
>>
>> I have read man smbcontrol.
>>
>> I wrote in start message:
>>
>>> I have tried:
>>> systemctl reload smbd.service
>>> killall -1 smbd
>>> pkill -HUP smbd
> 
> Forget 'systemctl reload'
> Forget 'killall'
> Forget 'pkill'
> 
>>> smbcontrol smbd reload-config
> 
> This is the one that should work, this should make smbd reload smb.conf
> You could try 'smbcontrol all reload-config'

well, at least -HUP produces some logging and when smbd says "Reloading
services after SIGHUP" it should do so or it's a bug

Process: 1072506 ExecReload=/usr/bin/kill -HUP $MAINPID (code=exited,
status=0/SUCCESS)

[root at srv-rhsoft:~]$ > samba.log
[root at srv-rhsoft:~]$ cat log.smbd
[root at srv-rhsoft:~]$ smbcontrol smbd reload-config
[root at srv-rhsoft:~]$ cat log.smbd
[root at srv-rhsoft:~]$ cat samba.log
[root at srv-rhsoft:~]$ systemctl reload smb
cat [root at srv-rhsoft:~]$ cat samba.log
[2018/06/21 15:28:35.131424,  1]
../source3/smbd/server.c:1451(smbd_parent_sig_hup_handler)
  parent: Reloading services after SIGHUP
[2018/06/21 15:28:35.139446,  1]
../source3/printing/queue_process.c:236(bq_sig_hup_handler)
  Reloading pcap cache after SIGHUP




More information about the samba mailing list