mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
Initscript: when checking status, print output of "ctdb ping" if it fails
At the moment the caller has no idea why it thinks CTDB isn't running and we can't debug failures... Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 776590bf84d221092298346a28d7fc0552a67c9d)
This commit is contained in:
parent
f5b15e21c5
commit
df7152fe87
@ -353,7 +353,7 @@ restart() {
|
||||
|
||||
status() {
|
||||
echo -n $"Checking for ctdbd service: "
|
||||
ctdb ping >/dev/null 2>&1 || {
|
||||
_out=$(ctdb ping 2>&1) || {
|
||||
RETVAL=$?
|
||||
echo -n " ctdbd not running. "
|
||||
case $init_style in
|
||||
@ -371,6 +371,9 @@ status() {
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
echo 'Output from "ctdb ping":'
|
||||
echo "$_out"
|
||||
|
||||
return $RETVAL
|
||||
}
|
||||
echo ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user