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

Bjoern Trimborn samba at bjoern-trimborn.de
Mon Jun 19 11:19:13 UTC 2017


Am 19.06.2017 um 12:15 schrieb Winfried via samba:
> Thanks. I'll see how to configure systemd so that Samba starts once the
> network is up and running.
> 
> 
> 
> --
> View this message in context: http://samba.2283325.n4.nabble.com/4-2-14-Debian-Smbd-not-listening-on-192-168-0-x-on-cold-start-tp4720131p4720154.html
> Sent from the Samba - General mailing list archive at Nabble.com.
> 

I don't know if it helps but I use the following systemd service configs
to start samba (AD or Members) with the interface names in the config,
never had a problem.

------------------- AD ---------------------

cat > /etc/systemd/system/samba-ad-dc.service << EOF
[Unit]
Description=Samba4 AD DC
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/sbin/samba -D
PIDFile=/var/run/samba/samba.pid

[Install]
WantedBy=multi-user.target
EOF

systemctl enable samba-ad-dc

------------------- Members ---------------------

cat > /etc/systemd/system/samba-smbd.service << EOF
[Unit]
Description=Samba4 smbd
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/sbin/smbd -D
PIDFile=/var/run/samba/smbd.pid

[Install]
WantedBy=multi-user.target
EOF"

systemctl enable samba-smbd

--

cat > /etc/systemd/system/samba-nmbd.service << EOF
[Unit]
Description=Samba4 nmbd
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/sbin/nmbd -D
PIDFile=/var/run/samba/nmbd.pid

[Install]
WantedBy=multi-user.target
EOF

systemctl enable samba-nmbd

--

cat > /etc/systemd/system/samba-winbindd.service << EOF
[Unit]
Description=Samba4 winbindd
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/sbin/winbindd -D
PIDFile=/var/run/samba/winbindd.pid

[Install]
WantedBy=multi-user.target
EOF

systemctl enable samba-winbindd



--
Bjoern



More information about the samba mailing list