2015-09-02 23:03:50 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DEBUG='/home/quentinbd/script/debug-mff-magichet.txt'
|
2015-09-12 19:14:04 +02:00
|
|
|
MOREDEBUG='/home/quentinbd/script/moredebug-mff-magichet.txt'
|
2015-09-02 23:03:50 +02:00
|
|
|
|
2015-09-12 19:14:04 +02:00
|
|
|
cd /home/quentinbd/mff-magichet
|
2015-09-02 23:03:50 +02:00
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
sleep 5
|
|
|
|
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
echo "Server restarted at "`date` >>$MOREDEBUG
|
|
|
|
echo "----------------------" >>$MOREDEBUG
|
|
|
|
|
|
|
|
echo "0" >/tmp/players_c.txt
|
|
|
|
|
|
|
|
/home/quentinbd/mff-magichet/bin/minetestserver \
|
|
|
|
--world /home/quentinbd/mff-magichet/worlds/minetestforfun-magichet/ \
|
|
|
|
--config /home/quentinbd/mff-magichet/minetest.conf \
|
2015-09-02 23:37:41 +02:00
|
|
|
--gameid minetestforfun_magichet \
|
2015-09-02 23:03:50 +02:00
|
|
|
--port 30091 \
|
|
|
|
# --logfile $DEBUG
|
|
|
|
|
|
|
|
sleep 25
|
|
|
|
done &>> $MOREDEBUG
|