#!/usr/bin/env bash set -euo pipefail if command -v systemctl >/dev/null 2>&1 && systemctl list-unit-files | grep -q '^shd-alice.service'; then systemctl stop shd-alice.service || sudo systemctl stop shd-alice.service || true else pkill -f '/home/shd/scripts/alice/yastation.py' || true fi