mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
ejabberdctl: When ping returns pang, return also status code 1 (#4327)
This commit is contained in:
parent
7eb09295a3
commit
fb572bf901
1 changed files with 2 additions and 1 deletions
|
@ -553,7 +553,8 @@ case $1 in
|
||||||
-noinput -hidden \
|
-noinput -hidden \
|
||||||
-eval 'net_kernel:connect_node('"'$PEER'"')' \
|
-eval 'net_kernel:connect_node('"'$PEER'"')' \
|
||||||
-eval 'io:format("~p~n",[net_adm:ping('"'$PEER'"')])' \
|
-eval 'io:format("~p~n",[net_adm:ping('"'$PEER'"')])' \
|
||||||
-s erlang halt -output text
|
-eval 'halt(case net_adm:ping('"'$PEER'"') of pong -> 0; pang -> 1 end).' \
|
||||||
|
-output text
|
||||||
;;
|
;;
|
||||||
started)
|
started)
|
||||||
set_dist_client
|
set_dist_client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue