[Samba] hosts allow option is not applaying without restart smbd
L.P.H. van Belle
belle at bazuin.nl
Thu Jun 21 13:52:31 UTC 2018
Hai,
As Harald showed, this is a known thing, this did hit samba, after the multi threaded support.
See also : systemctl cat smbd.service
For what works what not.
For a reload the kill -HUP MAINPID is, as i know, the only thing that works atm.
Is this a AD DC or a member? ( sorry didnt follow the complet thread ) this catch my eye just now.
Imo, for a member it should work, but i've not tried it.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Rowland Penny via samba
> Verzonden: donderdag 21 juni 2018 15:39
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] hosts allow option is not applaying
> without restart smbd
>
> On Thu, 21 Jun 2018 15:31:17 +0200
> Reindl Harald via samba <samba at lists.samba.org> wrote:
>
> >
> >
> > 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
> >
> >
>
> He doesn't want to actually stop smbd, he just wants the
> config reload,
> without stopping anything.
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
>
More information about the samba
mailing list