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
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
while [ true ]
do
./bin/php5/bin/php -d enable_dl=On PocketMine-MP.php $@
echo "Restarting the server..."
done