update stuff
This commit is contained in:
commit
4a0e206f09
3 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
|
||||
|
||||
# Start the Minecraft server after an OS reboot
|
||||
@reboot su server -c '~/framework/script/init.sh'
|
||||
@reboot su infinite -c '~/framework/script/init.sh'
|
||||
|
||||
# Reset and reboot the server every 24 hours (0 0 * * * / at 00:00)
|
||||
0 0 * * * su server -c '~/framework/script/reset.sh' && reboot
|
||||
0 0 * * * su infinite -c '~/framework/script/reset.sh && ~/framework/script/init.sh'
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
# checker in the background
|
||||
|
||||
cd ~/
|
||||
rm kaboom schematics
|
||||
rm infinite schematics
|
||||
|
||||
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
|
||||
dtach -n infinite ~/framework/script/server.sh > /dev/null 2>&1
|
||||
# dtach -n schematics ~/framework/script/schematics.sh > /dev/null 2>&1
|
||||
sleep 5
|
||||
done &
|
||||
|
|
|
@ -43,8 +43,8 @@ while true; do
|
|||
# Start Minecraft server
|
||||
|
||||
java \
|
||||
-Xms1700M \
|
||||
-Xmx1700M \
|
||||
-Xms700M \
|
||||
-Xmx700M \
|
||||
-XX:+UseG1GC \
|
||||
-XX:+ParallelRefProcEnabled \
|
||||
-XX:MaxGCPauseMillis=200 \
|
||||
|
|
Loading…
Reference in a new issue