mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 18:45:58 +08:00
Optimizing Docker Log Output Detection (#2014)
* Optimize script logs * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection
This commit is contained in:
@@ -17,12 +17,17 @@
|
||||
#FIXME The full names of the shell scripts that need to be started are placed in the `need_to_start_server_shell` array.
|
||||
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||
source "${OPENIM_ROOT}/scripts/install/common.sh"
|
||||
|
||||
|
||||
|
||||
# Function to execute the scripts.
|
||||
function execute_start_scripts() {
|
||||
for script_path in "${OPENIM_SERVER_SCRIPT_START_LIST[@]}"; do
|
||||
@@ -57,6 +62,9 @@ function execute_start_scripts() {
|
||||
|
||||
|
||||
|
||||
if grep -q docker /proc/1/cgroup; then
|
||||
exec > ${DOCKER_LOG_FILE} 2>&1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user