Bug 13184 - systemd should start samba and nmbd only when network is fully set up
systemd should start samba and nmbd only when network is fully set up
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
4.7.0
All All
: P5 normal
: ---
Assigned To: Andreas Schneider
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-12 07:30 UTC by Andreas Schneider
Modified: 2017-12-12 12:46 UTC (History)
4 users (show)

See Also:


Attachments

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 @@
 [Unit]
 Description=Samba AD Daemon
-After=syslog.target network.target
+Wants=network-online.target
+After=syslog.target network.target network-online.target
 
 [Service]
 Type=notify