doc
world
.dir-locals.el
.gitignore
LICENSE
README.md
backup.sh
genmap.sh
install.sh
minetest-dev.conf
minetest-experimental.conf
minetest-stable.conf
shutdown.sh
start.sh.example
upgrade.sh
worldmt-1.1.conf
29 lines
691 B
Bash
29 lines
691 B
Bash
#!/bin/bash
|
|
|
|
serverpath=/home/minetest/nalc-server
|
|
world=$serverpath/minetest/worlds/nalc
|
|
|
|
DEBUG=$serverpath/logs/debug.log
|
|
MOREDEBUG=$serverpath/logs/moredebug.log
|
|
|
|
cd $serverpath/minetest/bin
|
|
|
|
while true
|
|
do
|
|
sleep 5
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
echo "Server restarted at "`date` >>$MOREDEBUG
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
echo "0" >/tmp/players_c.txt
|
|
|
|
./minetestserver \
|
|
--world $world/ \
|
|
--config $serverpath/minetest/minetest.conf \
|
|
--gameid nalc_game \
|
|
--port 30002 \
|
|
# --logfile $DEBUG
|
|
|
|
sleep 25
|
|
done &>> $MOREDEBUG |