summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorOleksandr Natalenko <oleksandr@redhat.com>2018-08-03 14:34:47 +0200
committerKarolin Seeger <kseeger@samba.org>2018-08-13 12:56:38 +0200
commite93a716a98ff6e88cffb7167e8dc142c5d299ceb (patch)
tree034170df785077f82c8b5268bb5d21c3501c8f1e /packaging
parent4b91f85260ef9f505e70f7e119c9760e68213e78 (diff)
downloadsamba-e93a716a98ff6e88cffb7167e8dc142c5d299ceb.tar.gz
systemd: Only start smb when network interfaces are up
For smb, if the smb.conf contains explicit bindings to the network interfaces, the service must wait till network interfaces are up, otherwise the service won't be operational. The 0e571054a61e commit and the BZ 13184 have fixed this for nmb and samba, so do exactly the same here, for smb. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13559 Signed-off-by: Oleksandr Natalenko <oleksandr@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> (cherry picked from commit a3d248f284eb2e5f4fe886310e481b28c9f1c392)
Diffstat (limited to 'packaging')
-rw-r--r--packaging/systemd/smb.service.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/systemd/smb.service.in b/packaging/systemd/smb.service.in
index dcaf7ef0fde..18912ef0e98 100644
--- a/packaging/systemd/smb.service.in
+++ b/packaging/systemd/smb.service.in
@@ -1,7 +1,8 @@
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
-After=network.target nmb.service winbind.service
+Wants=network-online.target
+After=network.target network-online.target nmb.service winbind.service
[Service]
Type=notify