mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 05:12:10 +08:00
41 lines
708 B
Bash
41 lines
708 B
Bash
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
|
OPENIM_SCRIPTS=$(dirname "${BASH_SOURCE[0]}")/
|
|
source "$OPENIM_SCRIPTS/lib/path.sh"
|
|
source "$OPENIM_SCRIPTS/define/binaries.sh"
|
|
|
|
|
|
# Assuming 'openim::util::host_platform' is defined in one of the sourced scripts or elsewhere.
|
|
# If not, you'll need to define it to return the appropriate platform directory name.
|
|
|
|
# Main function to start binaries
|
|
|
|
|
|
|
|
kill_exist_binaries
|
|
|
|
result=$(check_binaries_stop)
|
|
ret_val=$?
|
|
|
|
if [ $ret_val -eq 0 ]; then
|
|
echo "All binaries are stopped."
|
|
else
|
|
echo "$result"
|
|
echo "abort..."
|
|
exit 1
|
|
fi
|
|
|
|
|
|
# Call the main function
|
|
start_binaries
|
|
|
|
check_binaries_running
|
|
|
|
print_listened_ports_by_binaries
|
|
|
|
|
|
|