2019-02-03 01:43:03 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-02-13 23:07:44 +01:00
|
|
|
serverpath=/home/minetest/nalc-server
|
|
|
|
world=$serverpath/minetest/worlds/nalc
|
2019-02-03 01:43:03 +01:00
|
|
|
|
2019-02-13 23:07:44 +01:00
|
|
|
DEBUG=$serverpath/logs/debug.log
|
|
|
|
MOREDEBUG=$serverpath/logs/moredebug.log
|
|
|
|
|
|
|
|
cd $serverpath/minetest/bin
|
2019-02-03 01:43:03 +01:00
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
echo "Server restarted at "`date` >>$MOREDEBUG
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
|
|
|
|
echo "0" >/tmp/players_c.txt
|
|
|
|
|
|
|
|
./minetestserver \
|
2019-02-13 23:07:44 +01:00
|
|
|
--world $world/ \
|
|
|
|
--config $serverpath/minetest/minetest.conf \
|
2019-02-03 01:43:03 +01:00
|
|
|
--gameid nalc_game \
|
|
|
|
--port 30002 \
|
|
|
|
# --logfile $DEBUG
|
|
|
|
|
|
|
|
sleep 25
|
|
|
|
done &>> $MOREDEBUG
|