发布 v1.1.0:加密双向同步、从机日志TTL与一键部署

This commit is contained in:
2026-03-08 02:49:17 +08:00
parent 78b9685ee1
commit 394789f567
15 changed files with 1047 additions and 411 deletions

25
linux/slave-package/bin/stop.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
APP_HOME="$(dirname "$SCRIPT_DIR")"
PID_FILE="$APP_HOME/run/app.pid"
if [[ ! -f "$PID_FILE" ]]; then
echo "No pid file found, service may not be running."
exit 0
fi
PID="$(cat "$PID_FILE")"
if kill -0 "$PID" 2>/dev/null; then
kill "$PID"
sleep 1
if kill -0 "$PID" 2>/dev/null; then
kill -9 "$PID"
fi
echo "RedisClipSync stopped (pid=$PID)."
else
echo "Process already stopped (pid=$PID)."
fi
rm -f "$PID_FILE"