From c3954dbdae6c816adca13d0a621f786aba3a8343 Mon Sep 17 00:00:00 2001 From: kotyaralih <62548070+kotyaralih@users.noreply.github.com> Date: Mon, 31 Jan 2022 13:11:43 +0500 Subject: [PATCH] Auto-restart --- start.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/start.sh b/start.sh index 34b12b01..fd4603b9 100644 --- a/start.sh +++ b/start.sh @@ -1,9 +1,8 @@ #!/bin/bash DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" cd "$DIR" -if [ -f ./bin/php5/bin/php ]; then - exec ./bin/php5/bin/php -d enable_dl=On PocketMine-MP.php $@ -else - echo "[WARNING] You are not using the standalone NostalgiaCore PHP binary." - exec php -d enable_dl=On PocketMine-MP.php $@ -fi \ No newline at end of file +while [ true ] +do +./bin/php5/bin/php -d enable_dl=On PocketMine-MP.php $@ +echo "Restarting the server..." +done