2026-04-22 00:07:30 +08:00

15 lines
290 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
# shellcheck disable=SC1091
source "$SCRIPT_DIR/common.sh"
if is_running; then
echo "hy-app-monitor running pid=$(read_pid) port=$APP_PORT"
exit 0
fi
echo "hy-app-monitor stopped"
exit 1