[Pkg-samba-maint] Bug#855918: Bug#855918: samba: connection refused after reboot, fixable by systemctl restart smbd
Martin Steigerwald
ms at teamix.de
Mon Mar 13 12:18:30 UTC 2017
Am Donnerstag, 9. März 2017, 22:46:43 CET schrieb Mathieu Parent:
> 2017-02-23 13:46 GMT+01:00 Martin Steigerwald
> <martin.steigerwald at teamix.de>: [...]
>
> > When I restart is with systemctl I get same open ports. I.e.
> > 445 is still on localhost and thus it does not seem to be needed
> > on client machine.
>
> I don't understand this paragraph. What is your other way to restart
> (other than systemctl)?
Booting the machine.
I wrote this that restarting samba with systemctl just didn´t change that 445
is still listening on localhost (and thus it does not seem to be needed to be
accessible by client machine).
> > [global]
> >
> > bind interfaces only = Yes
> > interfaces = lo eth0
>
> What if you comment out the two above lines? Do you really need them?
Then it works.
I don´t really need them, but I think they can be an additional security
precaution and it may be needed for servers with additional interfaces.
> Otherwise: probably your network-online.target is not dynamic.
Please, pretty please do not hint at what RHEL 7 is doing there by requiring
Network Manager on every system.
> What does the following command outputs:
> systemctl list-dependencies network-online.target
root at fileserver:~# systemctl list-dependencies network-online.target
network-online.target
● └─networking.service
> systemctl list-dependencies --after network-online.target
root at fileserver:~# systemctl list-dependencies --after network-online.target
network-online.target
● ├─ifup at eth0.service
● ├─networking.service
● └─network.target
● ├─ifup at eth0.service
● ├─networking.service
● ├─systemd-networkd.service
● └─network-pre.target
> You'll need systemd-networkd-wait-online.service or
> NetworkManager-wait-online.service or similar here. You can write your
> own which ensure that network is up.
I have:
allow-hotplug eth0
iface eth0 inet dhcp
No Network Manager.
> See also: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget
And I think this should work *out of the box*. It certainly did with Jessie.
Also it doesn´t work when I use:
root at fileserver:/etc/systemd/system# cat smbd.service
[Unit]
After=network-online.target nmb.service winbind.service
Feel free to reassign this to either systemd or ifupdown.
I bet upon a release of Stretch with this unfixed will break a ton of setups
out there. So at least this behavior should be mentioned in release notes IMHO
and/or in an debconf prompt.
Thanks,
--
Martin
More information about the Pkg-samba-maint
mailing list