[Samba] log.ham01.16.16.16.16.16.16.16.16.16.16.16.16.16.16.16

L.P.H. van Belle belle at bazuin.nl
Mon Nov 8 07:47:10 UTC 2021


> >
> > Well, now its pretty clear.
> > Set a static ip on the server and its fix.
> > Or configure the /etc/dhcp/dhclient.conf file.
> >
> > My advice, set static ip.
> Yes that solved the problem. I don't understand why Systemd 
> reloads the
> SMBD service when renewing the DHCP lease, but at least these 
> weird log
> files are no longer created.
> I am a fan of the distribution of IP addresses via DHCP, even those
> that never change, I am very reluctant to assign fixed IP addresses in
> a network configuration.

If you a fan of DHCP, which is totaly fine, then you should look better into
what DHCP affects. 

The reason of you smbd reloading is this one. 
/etc/dhcp/dhclient-enter-hooks.d/samba

On every DHCP update, it call that file. 

Now i wont even touch that file also, you could have set the DHCP lease time also 
to a day or a week.

Still, i would recommend static ip. 

Greetz, 

Louis




More information about the samba mailing list