#!/bin/sh

echo "================================================================================"
echo "STATUS OF PULT.ONLINE SERVICES"
if [[ "$1" == "-h" ]] || [[ "$1" == "--help" ]] || [[ "$1" == "?" ]]; then
  echo "Usage: ./status [<service>]"
  echo "Exmpl: ./status                   - status of all services"
  echo "       ./status gateway           - detailed status of gateway"
else
  (./services/supervisor/pult_supervisor >/dev/null 2>&1 )&
  ./services/rpcconsole/pult_rpcconsole status "$@"
fi
echo "================================================================================"
