1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-02 17:29:27 +02:00

ejabberdctl: When ping returns pang, return also status code 1 (#4327)

This commit is contained in:
Badlop 2024-12-16 11:06:00 +01:00
parent 7eb09295a3
commit fb572bf901

View file

@ -553,7 +553,8 @@ case $1 in
-noinput -hidden \
-eval 'net_kernel:connect_node('"'$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)
set_dist_client