diff options
| author | Martin Schwenke <martin@meltin.net> | 2011-08-19 13:55:55 +1000 |
|---|---|---|
| committer | Martin Schwenke <martin@meltin.net> | 2011-08-30 09:33:47 +1000 |
| commit | 194de8faf8eaa7ce353cddeec7c8ec0f511ba493 (patch) | |
| tree | e0e9ced062debc2cdd63301bfe2e1033c43ce8a0 | |
| parent | 9257b57f2c27aef16e442c37d789a882a8870e82 (diff) | |
| download | samba-194de8faf8eaa7ce353cddeec7c8ec0f511ba493.tar.gz samba-194de8faf8eaa7ce353cddeec7c8ec0f511ba493.tar.xz samba-194de8faf8eaa7ce353cddeec7c8ec0f511ba493.zip | |
Eventscripts - fix debugging buglet in ctdb_check_tcp_ports_ctdb()
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 61000e38d6016e58f67e292393756d0bd5262ae5)
| -rwxr-xr-x | ctdb/config/functions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions index f7ed58a26d..c792d139da 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -466,7 +466,8 @@ ctdb_check_tcp_ports_ctdb () for _p ; do # process each function argument (port) _cmd="ctdb checktcpport $_p" _out=$($_cmd 2>&1) - case "$?" in + _ret=$? + case "$_ret" in 0) ctdb_check_tcp_ports_debug="\"$_cmd\" was able to bind to port" return 1 @@ -476,7 +477,7 @@ ctdb_check_tcp_ports_ctdb () continue ;; *) - ctdb_check_tcp_ports_debug="$_cmd (exited with $?) with output: + ctdb_check_tcp_ports_debug="$_cmd (exited with $_ret) with output: $_out" # assume not implemented return 127 |
