30 lines
411 B
Plaintext
30 lines
411 B
Plaintext
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
export CLOUD_PATH=/home/pq/zwproject/LFtid1056
|
||
|
|
|
||
|
|
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
|
||
|
|
|