diff --git a/script/init.sh b/script/init.sh index 7b2b19e..01ec2ce 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 'sh -c script/server' - dtach -n proxy 'sh -x script/proxy' - dtach -n schematics 'sh -x script/schematics' + dtach -n server 'sh -c script/server.sh' + dtach -n proxy 'sh -x script/proxy.sh' + dtach -n schematics 'sh -x script/schematics.sh' sleep 5 done & diff --git a/script/server.sh b/script/server.sh index 8197ac4..1d2fb6f 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 'sh -x $HOME/script/alivecheck' +dtach -n alivecheck 'sh -x $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