diff --git a/stop.sh b/stop.sh index 52ef00f2..90cc0a7a 100755 --- a/stop.sh +++ b/stop.sh @@ -21,13 +21,19 @@ fi read pid 2>/dev/null /dev/null 2>&1; then + if curl --url "http://localhost:${api_port}/admin/stop" 1>/dev/null 2>&1; then echo "Qortal node responded and should be shutting down" if [ "${is_pid_valid}" -eq 0 ]; then @@ -42,7 +48,7 @@ if [[ -f $curl_path ]]; then fi exit 0 else - echo "${red}No response from Qortal node - not running?${normal}" + echo "${red}No response from Qortal node - not running on port ${api_port}?${normal}" exit 1 fi