summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-12-12 08:36:57 +0100
committerJeremy Allison <jra@samba.org>2017-12-20 04:21:51 +0100
commit0e571054a61e9de69190ae023199d1670e097e88 (patch)
tree523f61f4cdd9e41ceca417ac56c4c571edab97fc /packaging
parent0806ff7dfd3f982226e4cd9b923a0e570b765f0c (diff)
downloadsamba-0e571054a61e9de69190ae023199d1670e097e88.tar.gz
systemd: Only start samba and nmbd when network interfaces are up
For samba and nmbd we need to wait till a network interface is up or they wont be operational. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13184 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Dec 20 04:21:51 CET 2017 on sn-devel-144
Diffstat (limited to 'packaging')
-rw-r--r--packaging/systemd/nmb.service3
-rw-r--r--packaging/systemd/samba.service3
2 files changed, 4 insertions, 2 deletions
diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service
index 71c93d6088b..6231118abe8 100644
--- a/packaging/systemd/nmb.service
+++ b/packaging/systemd/nmb.service
@@ -1,6 +1,7 @@
[Unit]
Description=Samba NMB Daemon
-After=syslog.target network.target
+Wants=network-online.target
+After=syslog.target network.target network-online.target
[Service]
Type=notify
diff --git a/packaging/systemd/samba.service b/packaging/systemd/samba.service
index 1b64c3b779d..79b22a0da7a 100644
--- 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