mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Auto-restart
This commit is contained in:
parent
2ea35fc6e7
commit
c3954dbdae
1 changed files with 5 additions and 6 deletions
11
start.sh
11
start.sh
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue