Files
ECAP_Server/config/S90E-CAP
T
2026-06-25 15:44:25 +08:00

26 lines
575 B
Bash

#!/bin/sh
case "$1" in
start | "")
while true; do
printf "Starting E-CAP: "
cd /root/
./Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug >out.log 2>&1
# ./Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug
sleep 3
done &
;;
stop | status)
printf "Stopping E-CAP: "
pkill Radarcape_Local_Server_aarch64-buildroot-linux-gnu-gxx_Linux_Debug
;;
restart | reload | force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
*)
echo "Usage: [start|stop]" >&2
exit 3
;;
esac