Skip to content

Commit

Permalink
systemd: Only start samba and nmbd when network interfaces are up
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cryptomilk authored and jrasamba committed Dec 20, 2017
1 parent 0806ff7 commit 0e57105
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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
Expand Down
3 changes: 2 additions & 1 deletion 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
Expand Down

0 comments on commit 0e57105

Please sign in to comment.