mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-28 03:30:36 +01:00
28 lines
575 B
Bash
28 lines
575 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
DEBUG='/home/quentinbd/script/debug-mff.txt'
|
||
|
MOREDEBUG='/home/quentinbd/script/moredebug-mff.txt'
|
||
|
|
||
|
cd /home/quentinbd/mff
|
||
|
|
||
|
while true
|
||
|
do
|
||
|
sleep 5
|
||
|
|
||
|
echo "----------------------" >>$MOREDEBUG
|
||
|
echo "Server restarted at "`date` >>$MOREDEBUG
|
||
|
echo "----------------------" >>$MOREDEBUG
|
||
|
|
||
|
echo "0" >/tmp/players_c.txt
|
||
|
|
||
|
/home/quentinbd/mff/bin/minetestserver \
|
||
|
--world /home/quentinbd/mff/worlds/minetestforfun/ \
|
||
|
--config /home/quentinbd/mff/minetest.conf \
|
||
|
--gameid minetestforfun_game \
|
||
|
--port 30001 \
|
||
|
# --logfile $DEBUG
|
||
|
|
||
|
sleep 25
|
||
|
done &>> $MOREDEBUG
|
||
|
|