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 \
|
2015-09-02 23:37:41 +02:00
|
|
|
--gameid minetestforfun_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
|
|
|
|
|