#!/usr/bin/env bash
# Lifecycle for the Rust FUT roster host.
#
#   roster.sh start | stop | status | verify | verify-running
#
# A thin wrapper: everything about process ownership, executable identity,
# orphan detection and proven shutdown lives in scripts/host-lifecycle.sh, so
# there is exactly one implementation of the rules the redirector and Blaze
# hosts paid for. This file supplies only what is specific to roster.
#
# Environment:
#   OPENFUT_ROSTER_HOST_PORT   required; no default, so this can never collide
#                              with the Python roster server it runs beside
#   OPENFUT_ROSTER_CERT/KEY    MUST be the same pair every other FIFA-facing
#                              service presents
#   OPENFUT_ROSTER_BIN         explicit binary, if debug and release disagree
HL_NAME="roster"
HL_CRATE="openfut-roster-host"
HL_BINNAME="openfut-roster-host"
HL_PORT_VAR="OPENFUT_ROSTER_HOST_PORT"

# shellcheck source=../scripts/host-lifecycle.sh
source "$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd)/scripts/host-lifecycle.sh"

hl_dispatch "${1:-}"
