framework/script/init.sh

17 lines
438 B
Bash
Raw Normal View History

2020-04-16 15:08:07 -04:00
#!/bin/sh
# This is the core script used when booting up the server
# It asumes that the "framework" folder is located in the home directory
# Run scripts for starting the Minecraft server and schematic
# checker in the background
2020-04-16 18:01:58 -04:00
cd ~/
2020-05-08 18:53:42 -04:00
rm alivecheck kaboom schematics
2020-04-16 18:01:58 -04:00
2020-04-16 15:08:07 -04:00
while true; do
dtach -n kaboom ~/framework/script/server.sh > /dev/null 2>&1
dtach -n schematics ~/framework/script/schematics.sh > /dev/null 2>&1
sleep 5
done &