#!/bin/bash 

# Supervisor only uses this status class when the process is stopped, exited, or starting
if curl http://127.0.0.1:9001 | tac | grep -q statusnominal; then
  exit 1
else
  exit 0
fi
