Bug 13184 - systemd should start samba and nmbd only when network is fully set up
Summary: systemd should start samba and nmbd only when network is fully set up
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.7.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: Samba QA Contact
Depends on:
Reported: 2017-12-12 07:30 UTC by Andreas Schneider
Modified: 2020-04-10 16:23 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2017-12-12 07:30:34 UTC
sytsemd starts the samba service to early so the MIT KDC can't find any interfaces and fails to start.

We need to wait till the network is up.
Comment 1 Andreas Schneider 2017-12-12 12:30:52 UTC
--- a/packaging/systemd/samba.service
+++ b/packaging/systemd/samba.service
@@ -1,6 +1,7 @@
 Description=Samba AD Daemon
-After=syslog.target network.target
+After=syslog.target network.target network-online.target
Comment 2 Alexander Bokovoy 2018-10-05 13:02:12 UTC
The issue is fixed in both 4.8 and 4.9 branches which are the current ones supported by Samba Team. 4.7 is for security fixes only.

Thus, I'm closing this bug.
Comment 3 Mikhail Novosyolov 2020-04-10 16:23:38 UTC
There is another problem related to start up: bug#13111