更新 docker.sh

This commit is contained in:
coolsd 2024-09-21 23:57:18 +08:00
parent 19d3a2a753
commit 93b67234db

View File

@ -9,6 +9,12 @@ if [ "$EUID" -ne 0 ]; then
exit 1
fi
# 停止正在运行的 KHDN 进程
if pgrep -f "$KHDN_PROCESS" > /dev/null; then
echo "Stopping existing KHDN process..."
pkill -f "$KHDN_PROCESS"
fi
# 设置变量
SERVICE_NAME="khdn"
EXECUTABLE_PATH="/usr/local/bin/khdn"