[PATCH RESEND v2] systemd: only start smb when network interfaces are up
Andreas Schneider
asn at samba.org
Fri Aug 3 12:38:22 UTC 2018
On Friday, 3 August 2018 14:34:47 CEST Oleksandr Natalenko wrote:
> 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 at redhat.com>
> ---
> packaging/systemd/smb.service.in | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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
RB+
--
Andreas Schneider asn at samba.org
Samba Team www.samba.org
GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
More information about the samba-technical
mailing list