[Samba] samba-ad-dc.service: Got notification message from PID 27448, but reception only permitted for main PID 27410
Roy Eastwood
spindles7 at gmail.com
Tue Aug 31 20:18:34 UTC 2021
On 31 August 2021 10:42 Mani Wieser wrote:
> On 31.08.2021 11:08, L.P.H. van Belle via samba wrote:
> > [Service]
> > # Temp fix ad-dc : reception only permitted for main PID
> > NotifyAccess=all
>
> I can confirm a noise less restart of samba version 4.14.7-Debian (bullseye)
>
> Mani
>
I agree, now works. Which leaves the WiKi incorrect as it still recommends Type=forking etc. I assume this should be updated to (adapted for self-compiled version)?:
[Unit]
Description=Samba AD Daemon
Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=notify
NotifyAccess=all
PIDFile=/usr/local/samba/var/run/samba.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/local/samba/sbin/samba --foreground --no-process-group $SAMBAOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
Regards,
Roy
More information about the samba
mailing list