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
|
||||
echo "All services are running normally."
|
||||
else
|
||||
echo "Some services are not running as expected."
|
||||
echo "Some services are not running as expected. Details are as follows:"
|
||||
echo "$result"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -29,18 +29,5 @@ fi
|
||||
result=$(start_binaries)
|
||||
|
||||
|
||||
result=$(check_binaries_running)
|
||||
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
|
||||
|
||||
|
||||
$OPENIM_SCRIPTS/check.sh
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user