#!/bin/bash export CLOUD_PATH=/FeProject if [ -z "$CLOUD_PATH" ]; then echo "Error: CLOUD_PATH is not set. Please set it first." exit 1 fi case "$1" in 'start') $CLOUD_PATH/boot/start_fe.sh ;; 'stop') $CLOUD_PATH/boot/stop_fe.sh ;; 'restart') $CLOUD_PATH/boot/stop_fe.sh $CLOUD_PATH/boot/start_fe.sh ;; *) echo "Usage: feservice start|stop|restart" exit 1 ;; esac