summaryrefslogtreecommitdiffstats
path: root/ctdb/config
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-27 15:45:03 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-27 15:45:03 +1100
commit0588b5f9c55b4d539040492484d55d43eef7622f (patch)
treefd310298e836e73f13e37a150f8cf59f7c3a1446 /ctdb/config
parentd1bf89a6178b6103dd27485abab286af9346630e (diff)
downloadsamba-0588b5f9c55b4d539040492484d55d43eef7622f.tar.gz
samba-0588b5f9c55b4d539040492484d55d43eef7622f.tar.xz
samba-0588b5f9c55b4d539040492484d55d43eef7622f.zip
add a check that winbind can actually talk to teh dc during the startup event
and refuse to start up if it can not (This used to be ctdb commit 4037b6e73a819a8e2463dfe0959b42875e05e106)
Diffstat (limited to 'ctdb/config')
-rwxr-xr-xctdb/config/events.d/50.samba4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/config/events.d/50.samba b/ctdb/config/events.d/50.samba
index 814fb9aec4..1785f4dfc2 100755
--- a/ctdb/config/events.d/50.samba
+++ b/ctdb/config/events.d/50.samba
@@ -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