Optimizing Docker Log Output Detection (#2014)

* Optimize script logs

* Optimizing Docker Log Output Detection

* Optimizing Docker Log Output Detection
This commit is contained in:
skiffer-git
2024-03-07 12:24:45 +08:00
committed by GitHub
parent 13d0883507
commit 38f685bd01
4 changed files with 20 additions and 9 deletions
+8
View File
@@ -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