Handle multiple qortal processes in stop.sh

This commit is contained in:
CalDescent 2022-01-12 20:31:21 +00:00
parent 777bddd3d8
commit 2a6244a5c2

View File

@ -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..."