mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 13:22:11 +08:00
Script Refactoring
This commit is contained in:
parent
a67feabb35
commit
5749268fd6
@ -3,7 +3,7 @@ OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/
|
|||||||
source "${OPENIM_ROOT}/lib/util.sh"
|
source "${OPENIM_ROOT}/lib/util.sh"
|
||||||
source "${OPENIM_ROOT}/define/binaries.sh"
|
source "${OPENIM_ROOT}/define/binaries.sh"
|
||||||
source "${OPENIM_ROOT}/lib/path.sh"
|
source "${OPENIM_ROOT}/lib/path.sh"
|
||||||
|
source "${OPENIM_ROOT}/lib/logging.sh"
|
||||||
|
|
||||||
|
|
||||||
#停止所有的二进制对应的进程
|
#停止所有的二进制对应的进程
|
||||||
|
|||||||
@ -34,8 +34,8 @@ 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. Details are as follows:"
|
openim::log::error "Some services are not running as expected. Details are as follows:"
|
||||||
echo "$result"
|
openim::log::error "$result"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user