11 lines
202 B
Bash
11 lines
202 B
Bash
|
#!/usr/bin/sh
|
||
|
|
||
|
if [ "$1" = "" ] ; then
|
||
|
echo "Usage: stopERP.sh <number:Server>"
|
||
|
exit 1
|
||
|
fi
|
||
|
((HTTPPORT=11701+10*($1-1)))
|
||
|
curl -X POST http://localhost:$HTTPPORT/actuator/shutdown
|
||
|
sleep 1
|
||
|
echo -e "\n"
|