💾 Archived View for gemini.susa.net › minetest_hacky_scripts.gmi captured on 2023-07-10 at 13:52:53. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
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 '^#|^