added if statement
This commit is contained in:
parent
4d20ac042a
commit
d792c8e5e8
@ -11,14 +11,16 @@ while true; do
|
||||
./stop.sh
|
||||
|
||||
# Wait for 45 seconds
|
||||
sleep 45
|
||||
sleep 30
|
||||
|
||||
if [ -f "$QORTAL_DIR/db/blockchain.lck" ]; then
|
||||
|
||||
# Kill all Java processes
|
||||
killall -9 java
|
||||
|
||||
# Remove blockchain lock file
|
||||
rm -rf "$QORTAL_DIR/db/blockchain.lck"
|
||||
|
||||
fi
|
||||
# Start Qortal core
|
||||
./start.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user