mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fix loop counter and add delay between restarts
This commit is contained in:
parent
2d3b8845fd
commit
3b82a5fddf
14
start.sh
14
start.sh
@ -53,9 +53,13 @@ while [ "$LOOPS" -eq 0 ] || [ "$DO_LOOP" == "yes" ]; do
|
|||||||
else
|
else
|
||||||
exec "$PHP_BINARY" "$POCKETMINE_FILE" $@
|
exec "$PHP_BINARY" "$POCKETMINE_FILE" $@
|
||||||
fi
|
fi
|
||||||
((LOOPS++))
|
if [ "$DO_LOOP" == "yes" ]; then
|
||||||
|
if [ ${LOOPS} -gt 0 ]; then
|
||||||
|
echo "Restarted $LOOPS times"
|
||||||
|
fi
|
||||||
|
echo "To escape the loop, press CTRL+C now. Otherwise, wait 5 seconds for the server to restart."
|
||||||
|
echo ""
|
||||||
|
sleep 5
|
||||||
|
((LOOPS++))
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ ${LOOPS} -gt 1 ]; then
|
|
||||||
echo "Restarted $LOOPS times"
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user