mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 03:42:08 +08:00
34 lines
601 B
Bash
34 lines
601 B
Bash
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
OPENIM_SCRIPTS=$(dirname "${BASH_SOURCE[0]}")/
|
|
source "$OPENIM_SCRIPTS/bricks.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 -ne 0 ]; then
|
|
echo "$result"
|
|
echo "Some services running, abort start"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
# Call the main function
|
|
result=$(start_binaries)
|
|
openim::log::success "$result"
|
|
|
|
$OPENIM_SCRIPTS/check.sh
|
|
|