#!/bin/bash

if [ -z "$FEP_ENV" ]; then
  echo "Error: FEP_ENV is not set. Please set it first."
  exit 1
fi

case "$1" in
  'start')
	$FEP_ENV/boot/start_fe.sh
	;;

  'stop')
	$FEP_ENV/boot/stop_fe.sh
	;;

  'restart')
	$FEP_ENV/boot/stop_fe.sh
	$FEP_ENV/boot/start_fe.sh
	;;

  *)
	echo "Usage: feservice start|stop|restart"
	exit 1
	;;
esac

