framework/script/init.sh

17 lines
438 B
Bash
Raw Normal View History

2020-04-16 19:08:07 +00: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 22:01:58 +00:00
cd ~/
2020-05-08 22:53:42 +00:00
rm alivecheck kaboom schematics
2020-04-16 22:01:58 +00:00
2020-04-16 19:08:07 +00: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 &