2015-08-17 01:14:55 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-03-12 15:39:36 +01:00
|
|
|
DEBUG='/home/vincent/mff/log/debug-mff.txt'
|
|
|
|
MOREDEBUG='/home/vincent/mff/log/moredebug-mff.txt'
|
2015-08-17 01:14:55 +02:00
|
|
|
|
2017-03-12 15:39:36 +01:00
|
|
|
cd /home/vincent/jeux/mff
|
2015-08-17 01:14:55 +02:00
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
echo "Server restarted at "`date` >>$MOREDEBUG
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
|
|
|
|
echo "0" >/tmp/players_c.txt
|
|
|
|
|
2017-03-12 15:39:36 +01:00
|
|
|
/home/vincent/jeux/mff/bin/minetestserver \
|
|
|
|
--world /home/vincent/jeux/mff/worlds/minetestforfun/ \
|
|
|
|
--config /home/vincent/jeux/mff/minetest.conf \
|
2017-12-12 23:25:07 +01:00
|
|
|
--gameid minetest_game \
|
2017-03-12 15:39:36 +01:00
|
|
|
--port 30002 \
|
2015-08-17 01:14:55 +02:00
|
|
|
# --logfile $DEBUG
|
|
|
|
|
|
|
|
sleep 25
|
|
|
|
done &>> $MOREDEBUG
|
|
|
|
|