2025-03-19 10:28:25 +08:00

10 lines
214 B
Bash

#!/usr/bin/sh
if [ "$1" = "" ] ; then
echo "Usage: stopCNX.sh <number:Server>"
exit 1
fi
((HTTPPORT=11601+10*($1-1)))
echo 'HTTPPORT='$HTTPPORT
curl -X POST http://localhost:$HTTPPORT/actuator/shutdown
sleep 1