mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
ctdb-scripts: Add debugging variable CTDB_KILLTCP_DEBUGLEVEL
To debug ctdb_killtcp failures, add CTDB_KILLTCP_DEBUGLEVEL=DEBUG to script.options. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Tue Sep 20 11:42:16 UTC 2022 on sn-devel-184
This commit is contained in:
parent
9f7d69a05b
commit
d9dda4b7af
@ -452,8 +452,14 @@ kill_tcp_connections ()
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$CTDB_KILLTCP_DEBUGLEVEL" ]; then
|
||||||
|
_debuglevel="$CTDB_KILLTCP_DEBUGLEVEL"
|
||||||
|
else
|
||||||
|
_debuglevel="$CTDB_DEBUGLEVEL"
|
||||||
|
fi
|
||||||
echo "$_connections" | \
|
echo "$_connections" | \
|
||||||
"${CTDB_HELPER_BINDIR}/ctdb_killtcp" "$_iface" || {
|
CTDB_DEBUGLEVEL="$_debuglevel" \
|
||||||
|
"${CTDB_HELPER_BINDIR}/ctdb_killtcp" "$_iface" || {
|
||||||
echo "Failed to kill TCP connections"
|
echo "Failed to kill TCP connections"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user