12 lines
206 B
Bash
Raw Normal View History

2025-03-10 13:46:51 +08:00
#!/usr/bin/sh
if [ "$1" = "" ] ; then
echo "Usage: stopCNX.sh <number:Server>"
exit 1
fi
((HTTPPORT=32203+10*($1-1)))
curl -X POST http://localhost:$HTTPPORT/actuator/shutdownapp
sleep 1
echo -e "\n"