forked from Qortal/qortal
Handle multiple qortal processes in stop.sh
This commit is contained in:
parent
777bddd3d8
commit
2a6244a5c2
2
stop.sh
2
stop.sh
@ -23,7 +23,7 @@ is_pid_valid=$?
|
|||||||
|
|
||||||
if [ -z "${pid}" ]; then
|
if [ -z "${pid}" ]; then
|
||||||
# Attempt to locate the process ID
|
# 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
|
fi
|
||||||
|
|
||||||
echo "Stopping Qortal process $pid..."
|
echo "Stopping Qortal process $pid..."
|
||||||
|
Loading…
Reference in New Issue
Block a user