mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-03-21 22:06:45 +08:00
21 lines
446 B
Bash
21 lines
446 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
RUNTIME_DIR="$PROJECT_DIR/runtime"
|
|
|
|
echo "=== Clash Doctor ==="
|
|
|
|
if [ -f "$RUNTIME_DIR/config.yaml" ]; then
|
|
echo "[OK] config exists"
|
|
else
|
|
echo "[ERROR] config missing"
|
|
fi
|
|
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
if systemctl is-active --quiet clash-for-linux.service; then
|
|
echo "[OK] service running"
|
|
else
|
|
echo "[WARN] service not running"
|
|
fi
|
|
fi |