diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-27 15:45:03 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-10-27 15:45:03 +1100 |
commit | 0588b5f9c55b4d539040492484d55d43eef7622f (patch) | |
tree | fd310298e836e73f13e37a150f8cf59f7c3a1446 /ctdb/config | |
parent | d1bf89a6178b6103dd27485abab286af9346630e (diff) | |
download | samba-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-x | ctdb/config/events.d/50.samba | 4 |
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 |