Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

571 B
Raw Blame
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
# shellcheck source=scripts/lib/gateway-common.sh
. "$ROOT/scripts/lib/gateway-common.sh"

case "${1:-}" in
  survives)
    gateway_identity_matches() { return 0; }
    kill() { return 0; }
    sleep() { :; }
    gateway_stop_identity '{"pid":4242}'
    ;;
  disappears)
    checks=0
    gateway_identity_matches() { checks=$((checks+1)); [ "$checks" -lt 3 ]; }
    kill() { return 0; }
    sleep() { :; }
    gateway_stop_identity '{"pid":4242}'
    ;;
  *) exit 2 ;;
esac