#!/bin/bash set -e echo "Starting FRController..." /etc/init.d/frinit.sh start & echo "Waiting for FRController on 127.0.0.1:20003..." /app/wait-for-it.sh 127.0.0.1:20003 -t 60 -- echo "FRController is up" echo "FRController is running" exec python3 -u /app/run.py echo "FRController has stopped"