#!/usr/bin/env bash set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SKILL_ROOT="$(dirname "$SCRIPT_DIR")" source "$SKILL_ROOT/scripts/_common.sh" : "${SERVICE_NAME:=cloudflared-tunnel}" main() { if command -v systemctl >/dev/null 2>&1; then systemctl is-active "$SERVICE_NAME" >/dev/null 2>&1 || die "Service not active: $SERVICE_NAME" log_info "Service active: $SERVICE_NAME" else die "systemctl not available" fi } main "$@"