git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1bf89a
)
add a check that winbind can actually talk to teh dc during the startup event
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Tue, 27 Oct 2009 04:45:03 +0000
(15:45 +1100)
committer
Ronnie 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
patch
|
blob
|
history
diff --git
a/ctdb/config/events.d/50.samba
b/ctdb/config/events.d/50.samba
index 814fb9aec45df487589e0af149ccdd03c262d8a7..1785f4dfc2f60130f52d339da985b91062e7f415 100755
(executable)
--- 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