mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 15:30:30 +01:00
e13fb99494
This is a step to reorganization
28 lines
585 B
Bash
Executable File
28 lines
585 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 minetestforfun_game \
|
|
--port 30002 \
|
|
# --logfile $DEBUG
|
|
|
|
sleep 25
|
|
done &>> $MOREDEBUG
|
|
|