Auto-restart

This commit is contained in:
kotyaralih 2022-01-31 13:11:43 +05:00 • committed by GitHub
parent 2ea35fc6e7
commit c3954dbdae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,8 @@
#!/bin/bash #!/bin/bash
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
cd "$DIR" cd "$DIR"
if [ -f ./bin/php5/bin/php ]; then while [ true ]
exec ./bin/php5/bin/php -d enable_dl=On PocketMine-MP.php $@ do
else ./bin/php5/bin/php -d enable_dl=On PocketMine-MP.php $@
echo "[WARNING] You are not using the standalone NostalgiaCore PHP binary." echo "Restarting the server..."
exec php -d enable_dl=On PocketMine-MP.php $@ done
fi