[Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start

L.P.H. van Belle belle at bazuin.nl
Tue Jun 20 10:12:44 UTC 2017


Hai, 

Really, you dont need to edit the systemd files. 
Try first with only the interface change. 

Then if you still need to edit the systemd files.
You need these settings, but i dont thing you need it after the interface change.

cat /lib/systemd/system/smbd.service
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
After=network.target nmbd.service winbind.service

[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/smbd $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity

[Install]
WantedBy=multi-user.target

------------------
cat /lib/systemd/system/nmbd.service
[Unit]
Description=Samba NMB Daemon
Documentation=man:nmbd(8) man:samba(7) man:smb.conf(5)
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/samba/nmbd.pid
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/nmbd $NMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity

[Install]
WantedBy=multi-user.target

---------------

But again, i never change these file, its just not needed imo. 

P.s. 
For starting servers after you network is completely up. 
You need these
After=network-online.target ( maybe also other's) 
Wants=network-online.target 



Greetz, 

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Winfried via samba
> Verzonden: dinsdag 20 juni 2017 11:42
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] [4.2.14-Debian] Smbd not listening on 
> 192.168.0.x on cold start
> 
> Thanks much for the infos.
> 
> I edited the "interfaces" line in smb.conf, and will 
> reconfigure systemd so that 1) the network service is 
> launched before smbd and nmbd, and 2) samba-ad-dc.service is 
> disabled (since I don't need this on a standalone server).
> 
> 
> 
> --
> View this message in context: 
> http://samba.2283325.n4.nabble.com/4-2-14-Debian-Smbd-not-list
> ening-on-192-168-0-x-on-cold-start-tp4720131p4720213.html
> Sent from the Samba - General mailing list archive at Nabble.com.
> 
> --
> 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