The following are helper scripts to start and stop a Minetest server on Bash/GNU/Linux. They're totally hacky and sub-optimal, but they do their simple jobs.
#!/bin/bash MINETEST_HOME=~/minetest pgrep minetestserver >/dev/null && { echo "Stopping existing instance..."; killall -HUP minetestserver; sleep 2; } echo "Showing the current configuration" ~/config_summary.sh echo "Starting minetest server" ${MINETEST_HOME}/bin/minetestserver& MT_PID="$!" echo "Started server, PID ${MT_PID}"
#!/bin/bash MINETEST_HOME=~/minetest pgrep minetestserver >/dev/null && { killall -HUP minetestserver; sleep 2; } echo -e "\nMinetest server has been stopped"
#!/bin/bash MINETEST_HOME=~/minetest pgrep minetestserver >/dev/null && { killall -HUP minetestserver; sleep 2; } echo "Configuration of minetest.conf" egrep -v '^#|^