FS#59449 - [samba] smb.service should depend on network-online.target
Attached to Project:
Arch Linux
Opened by Oleksandr Natalenko (post-factum) - Wednesday, 25 July 2018, 19:32 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 07 September 2018, 16:42 GMT
Opened by Oleksandr Natalenko (post-factum) - Wednesday, 25 July 2018, 19:32 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 07 September 2018, 16:42 GMT
|
Details
If smb.service is enabled, but nmb.service is disabled, and
if smb.conf contains explicit binding to specific network
interfaces:
=== /etc/samba/smb.conf … interfaces = lo wlp1s0 enp3s0.128 bind interfaces only = yes … === then, during the boot, smbd is not bound to those interfaces (except loopback). If the following droplet is used: === /etc/systemd/system/smb.service.d/10-network-online.conf [Unit] After=network.target network-online.target nmb.service winbind.service Wants=network-online.target === smb.service waits for all the interfaces to become up, and thus starts just fine. So, the suggestion is to modify smb.service to depend on network-online.target just like nmb.service does. |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Friday, 07 September 2018, 16:42 GMT
Reason for closing: Fixed
Additional comments about closing: 4.8.5-1
Friday, 07 September 2018, 16:42 GMT
Reason for closing: Fixed
Additional comments about closing: 4.8.5-1
Upstream Bugzilla: https://bugzilla.samba.org/show_bug.cgi?id=13559
Please cherry-pick.