1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-10 04:20:17 +01:00
server-nalc/other_things/scripts/Server-side/script/start-mff-magichet.sh
2015-09-02 23:03:50 +02:00

27 lines
620 B
Bash

#!/bin/bash
DEBUG='/home/quentinbd/script/debug-mff-magichet.txt'
MOREDEBUG='/home/quentinbd/script/moredebug-mff-megichet.txt'
cd /home/quentinbd/mff-hg
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 \
--gameid Magichet \
--port 30091 \
# --logfile $DEBUG
sleep 25
done &>> $MOREDEBUG