[全量] 初始化项目代码、配置、文档及Agent协同harness
This commit is contained in:
14
scripts/milvus-restart.sh
Executable file
14
scripts/milvus-restart.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# 须用 bash 执行;若误用 sh/dash 会自动改用 bash 再跑一遍
|
||||
[ -n "${BASH_VERSION:-}" ] || exec /usr/bin/env bash "$0" ${1+"$@"}
|
||||
# 重启 Milvus(docker compose 目录:gangyan/milvus)
|
||||
# 日志:gangyan/logs/milvus.log
|
||||
set -u
|
||||
source "$(cd "$(dirname "$0")" && pwd)/common-restart.sh"
|
||||
LOG_FILE="$LOG_DIR/milvus.log"
|
||||
|
||||
log_tee "======== 重启 Milvus ========"
|
||||
cd "$GANGYAN_ROOT/milvus"
|
||||
docker compose restart 2>&1 | tee -a "$LOG_FILE" || docker compose up -d 2>&1 | tee -a "$LOG_FILE"
|
||||
log_tee "完成。docker compose ps ->"
|
||||
docker compose ps 2>&1 | tee -a "$LOG_FILE"
|
||||
Reference in New Issue
Block a user