mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
Script Refactoring
This commit is contained in:
parent
92650ab789
commit
db41c12d1f
@ -34,7 +34,7 @@ ret_val=$?
|
|||||||
if [ $ret_val -eq 0 ]; then
|
if [ $ret_val -eq 0 ]; then
|
||||||
echo "All services are running normally."
|
echo "All services are running normally."
|
||||||
else
|
else
|
||||||
echo "Some services are not running as expected."
|
echo "Some services are not running as expected. Details are as follows:"
|
||||||
echo "$result"
|
echo "$result"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -29,18 +29,5 @@ fi
|
|||||||
result=$(start_binaries)
|
result=$(start_binaries)
|
||||||
|
|
||||||
|
|
||||||
result=$(check_binaries_running)
|
$OPENIM_SCRIPTS/check.sh
|
||||||
ret_val=$?
|
|
||||||
if [ $ret_val -eq 0 ]; then
|
|
||||||
echo "All binaries are running."
|
|
||||||
else
|
|
||||||
echo "$result"
|
|
||||||
echo "abort..."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
print_listened_ports_by_binaries
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user