Sometimes I boot my laptop disconnected from the network and I connect it some minutes/hours after I start my user session.
In this circumstance, another computer from my network can not access files from my laptop because nmb Samba service is not active, “systemctl status nmb” says
● nmb.service - Samba NMB Daemon Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled) Active: failed (Result: timeout) since Thu 2018-04-26 19:56:42 -03; 1min 18s ago Docs: man:nmbd(8) man:samba(7) man:smb.conf(5) Process: 623 ExecStart=/usr/bin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=killed, signal=TERM) Main PID: 623 (code=killed, signal=TERM) Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."
So I need to start nmb service manually to share files with another computer from my network.
smb service starts without any problem even if my laptop is offline on boot.
How can I make nmb service to start correctly even if my laptop is offline on boot?