From 2a6244a5c24071398c34e2e778c3cc51d51234c5 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Wed, 12 Jan 2022 20:31:21 +0000 Subject: [PATCH] Handle multiple qortal processes in stop.sh --- stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stop.sh b/stop.sh index f881b867..678472a7 100755 --- a/stop.sh +++ b/stop.sh @@ -23,7 +23,7 @@ is_pid_valid=$? if [ -z "${pid}" ]; then # Attempt to locate the process ID - pid=$(ps aux | grep '[q]ortal.jar' | awk '{print $2}') + pid=$(ps aux | grep '[q]ortal.jar' | head -n 1 | awk '{print $2}') fi echo "Stopping Qortal process $pid..."