From 32ec02225abe36657e62a589a3a0c611945a857a Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sun, 21 Feb 2021 11:50:02 +0000 Subject: [PATCH] Added optional "--testnet" or "-t" argument to stop.sh. When passing this argument, it will attempt to stop the core using the default testnet port (62391) rather than the default mainnet port (12391). --- stop.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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