2025-06-20 16:20:59 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2025-07-04 09:50:59 +08:00
|
|
|
if [ -z "$FEP_ENV" ]; then
|
|
|
|
|
echo "Error: FEP_ENV is not set. Please set it first."
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2025-06-20 16:20:59 +08:00
|
|
|
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
|
|
|
|
|
|