Files
front_linux/LFtid1056/cloudfront/boot/feservice
2025-07-04 09:50:59 +08:00

28 lines
345 B
Bash

#!/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