From: Michael Adam Date: Thu, 17 Oct 2013 13:19:41 +0000 (+0200) Subject: s3:nmbd: do a very early cluster probe when starting nmbd. X-Git-Url: http://git.samba.org/?p=mat%2Fsamba.git;a=commitdiff_plain;h=01966190ac438180e1d1129beaa02d30f58420e9 s3:nmbd: do a very early cluster probe when starting nmbd. Just as for smbd and winbindd Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke Autobuild-User(master): Michael Adam Autobuild-Date(master): Fri Oct 18 01:17:14 CEST 2013 on sn-devel-104 --- diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index ec0e7d098f..f31de08d53 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -26,6 +26,7 @@ #include "serverid.h" #include "messages.h" #include "../lib/util/pidfile.h" +#include "util_cluster.h" int ClientNMB = -1; int ClientDGRAM = -1; @@ -917,6 +918,10 @@ static bool open_sockets(bool isdaemon, int port) exit(1); } + if (!cluster_probe_ok()) { + exit(1); + } + msg = messaging_init(NULL, server_event_context()); if (msg == NULL) { return 1;