From cb6b6d2d1c36853338b4b3bcf9bc0936d0f50a45 Mon Sep 17 00:00:00 2001 From: mathiascode Date: Sat, 30 Nov 2019 20:57:33 +0200 Subject: [PATCH] Fix bugs --- script/init.sh | 6 +++--- script/proxy.sh | 2 +- script/server.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/script/init.sh b/script/init.sh index a09e2ab..013f883 100755 --- a/script/init.sh +++ b/script/init.sh @@ -17,9 +17,9 @@ ssh-keyscan github.com >> .ssh/known_hosts # checker in the background while true; do - dtach -n server 'script/server.sh' - dtach -n proxy 'script/proxy.sh' - dtach -n schematics 'script/schematics.sh' + dtach -n server script/server.sh + dtach -n proxy script/proxy.sh + dtach -n schematics script/schematics.sh sleep 5 done & diff --git a/script/proxy.sh b/script/proxy.sh index 50e0c32..1685395 100755 --- a/script/proxy.sh +++ b/script/proxy.sh @@ -6,7 +6,7 @@ set -x -ssh -i ~/.ssh/remote \ +ssh -i ~/.ssh/proxy \ -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes \ -c aes128-ctr \ -C -S none -N -T -R \ diff --git a/script/server.sh b/script/server.sh index 8fba56a..94e56e1 100755 --- a/script/server.sh +++ b/script/server.sh @@ -4,7 +4,7 @@ # OpenJ9 JVM is used instead of Java's default Hotspot JVM. chmod -R 500 $HOME/plugins/bStats/ $HOME/plugins/PluginMetrics/ -dtach -n alivecheck '$HOME/script/alivecheck.sh' +dtach -n alivecheck $HOME/script/alivecheck.sh while true; do java -Xmx384M -Xtune:virtualized -Xaggressive -Xcompressedrefs -Xdump:none -Xgc:concurrentScavenge -Xgc:dnssExpectedTimeRatioMaximum=3 -Xgc:scvNoAdaptiveTenure -Xdisableexplicitgc -Xshareclasses -Xshareclasses:noPersistentDiskSpaceCheck -XX:-HeapDumpOnOutOfMemoryError -XX:OnOutofMemoryError="pkill -9 java" -XX:MaxDirectMemorySize=64M -XX:+UseContainerSupport -XX:+ClassRelationshipVerifier -Dpaper.playerconnection.keepalive=360 -DIReallyKnowWhatIAmDoingISwear -jar server.jar --world-dir=worlds