Les fichiers pour installer le serveur NALC.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
691B

  1. #!/bin/bash
  2. serverpath=/home/minetest/nalc-server
  3. world=$serverpath/minetest/worlds/nalc
  4. DEBUG=$serverpath/logs/debug.log
  5. MOREDEBUG=$serverpath/logs/moredebug.log
  6. cd $serverpath/minetest/bin
  7. while true
  8. do
  9. sleep 5
  10. echo "----------------------" >>$MOREDEBUG
  11. echo "Server restarted at "`date` >>$MOREDEBUG
  12. echo "----------------------" >>$MOREDEBUG
  13. echo "0" >/tmp/players_c.txt
  14. ./minetestserver \
  15. --world $world/ \
  16. --config $serverpath/minetest/minetest.conf \
  17. --gameid nalc_game \
  18. --port 30002 \
  19. # --logfile $DEBUG
  20. sleep 25
  21. done &>> $MOREDEBUG