add a check that winbind can actually talk to teh dc during the startup event
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 27 Oct 2009 04:45:03 +0000 (15:45 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 27 Oct 2009 04:45:03 +0000 (15:45 +1100)
and refuse to start up if it can not

(This used to be ctdb commit 4037b6e73a819a8e2463dfe0959b42875e05e106)

ctdb/config/events.d/50.samba

index 814fb9aec45df487589e0af149ccdd03c262d8a7..1785f4dfc2f60130f52d339da985b91062e7f415 100755 (executable)
@@ -171,6 +171,10 @@ case $cmd in
                    killall -q -9 winbindd
                }
                service "$CTDB_SERVICE_WINBIND" start
+               wbinfo -t || {
+                       echo "Startup failed. wbinfo -t returned error."
+                       exit 1
+               }
        }
 
        # start Samba service. Start it reniced, as under very heavy load