updates to restart script
This commit is contained in:
parent
b988742727
commit
1611dfd26f
@ -8,7 +8,8 @@ while true; do
|
|||||||
cd "$QORTAL_DIR" || exit
|
cd "$QORTAL_DIR" || exit
|
||||||
|
|
||||||
# Stop Qortal core
|
# Stop Qortal core
|
||||||
./stop.sh &> stop_output.log
|
./stop.sh &> stop_output.log &
|
||||||
|
stop_pid=$!
|
||||||
|
|
||||||
# Wait for 30 seconds
|
# Wait for 30 seconds
|
||||||
sleep 30
|
sleep 30
|
||||||
@ -21,8 +22,13 @@ while true; do
|
|||||||
|
|
||||||
# Remove blockchain lock file
|
# Remove blockchain lock file
|
||||||
rm -rf "$QORTAL_DIR/db/blockchain.lck"
|
rm -rf "$QORTAL_DIR/db/blockchain.lck"
|
||||||
|
else
|
||||||
|
echo "Qortal stopped gracefully."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ensure stop process completes
|
||||||
|
wait $stop_pid
|
||||||
|
|
||||||
# Start Qortal core
|
# Start Qortal core
|
||||||
./start.sh
|
./start.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user