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