forked from nalc/nalc-server
26 lines
609 B
Plaintext
26 lines
609 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
DEBUG=~/nalc-server/logs/debug.log
|
||
|
MOREDEBUG=~/nalc-server/logs/moredebug.log
|
||
|
|
||
|
cd ~/nalc-server/minetest/bin
|
||
|
|
||
|
while true
|
||
|
do
|
||
|
sleep 5
|
||
|
|
||
|
echo "----------------------" >>$MOREDEBUG
|
||
|
echo "Server restarted at "`date` >>$MOREDEBUG
|
||
|
echo "----------------------" >>$MOREDEBUG
|
||
|
|
||
|
echo "0" >/tmp/players_c.txt
|
||
|
|
||
|
./minetestserver \
|
||
|
--world ../worlds/nalc/ \
|
||
|
--config ../minetest.conf \
|
||
|
--gameid nalc_game \
|
||
|
--port 30002 \
|
||
|
# --logfile $DEBUG
|
||
|
|
||
|
sleep 25
|
||
|
done &>> $MOREDEBUG
|