blob: 0ab3436fc56c8b4b7e41c7257522c0f928a44029 [file] [log] [blame]
Brad Bishop7f28bc52017-12-03 23:42:40 -05001Upstream-Status: Submitted [https://github.com/samba-team/samba/pull/70]
2
3Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
4
5From 50eac4fd30944e5e1d83060757633fe0ed572723 Mon Sep 17 00:00:00 2001
6From: Andreas Oberritter <obi@opendreambox.org>
7Date: Wed, 30 Nov 2016 16:25:06 +0100
8Subject: [PATCH] packaging: Avoid timeout for nmbd if started offline with
9 systemd
10
11If no network connection appears within DefaultTimeoutStartSec
12(~ 90s) after startup, nmbd fails to notify systemd and will
13therefore get killed.
14
15Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
16---
17 packaging/systemd/nmb.service | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/packaging/systemd/nmb.service b/packaging/systemd/nmb.service
21index 992c0cd..555c9ab 100644
22--- a/packaging/systemd/nmb.service
23+++ b/packaging/systemd/nmb.service
24@@ -10,6 +10,7 @@ EnvironmentFile=-/etc/sysconfig/samba
25 ExecStart=/usr/sbin/nmbd $NMBDOPTIONS
26 ExecReload=/usr/bin/kill -HUP $MAINPID
27 LimitCORE=infinity
28+TimeoutStartSec=0
29
30 [Install]
31 WantedBy=multi-user.target