Web lists-archives.com

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

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@xxxxxxxxxxxxxxx> 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,

[root@srv-rhsoft:~]$ > samba.log
[root@srv-rhsoft:~]$ cat log.smbd
[root@srv-rhsoft:~]$ smbcontrol smbd reload-config
[root@srv-rhsoft:~]$ cat log.smbd
[root@srv-rhsoft:~]$ cat samba.log
[root@srv-rhsoft:~]$ systemctl reload smb
cat [root@srv-rhsoft:~]$ cat samba.log
[2018/06/21 15:28:35.131424,  1]
  parent: Reloading services after SIGHUP
[2018/06/21 15:28:35.139446,  1]
  Reloading pcap cache after SIGHUP

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba