1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-14 14:30:34 +01:00
server-nalc/other_things/scripts/Server-side/script/start-mff.sh

28 lines
579 B
Bash
Executable File

#!/bin/bash
DEBUG='/home/vincent/mff/log/debug-mff.txt'
MOREDEBUG='/home/vincent/mff/log/moredebug-mff.txt'
cd /home/vincent/jeux/mff
while true
do
sleep 5
echo "----------------------" >>$MOREDEBUG
echo "Server restarted at "`date` >>$MOREDEBUG
echo "----------------------" >>$MOREDEBUG
echo "0" >/tmp/players_c.txt
/home/vincent/jeux/mff/bin/minetestserver \
--world /home/vincent/jeux/mff/worlds/minetestforfun/ \
--config /home/vincent/jeux/mff/minetest.conf \
--gameid minetest_game \
--port 30002 \
# --logfile $DEBUG
sleep 25
done &>> $MOREDEBUG