hy-app-monitor/scripts/run_yumi_foreground.sh

15 lines
325 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
# shellcheck disable=SC1091
source "$SCRIPT_DIR/common.sh"
if [ ! -f "$TARGETS_FILE" ]; then
echo "targets file not found: $TARGETS_FILE" >&2
exit 1
fi
export_service_env yumi
exec "$PYTHON_BIN" "$ROOT_DIR/yumi_server.py"