mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue