mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
Make some files read-only
This commit is contained in:
parent
f68e336558
commit
d9288161c1
|
@ -3,11 +3,19 @@
|
|||
# The alive checker and Minecraft server is started at the same time. For performance reasons, the
|
||||
# OpenJ9 JVM is used instead of Java's default Hotspot JVM.
|
||||
|
||||
mkdir -p $HOME/plugins/Essentials/userdata/
|
||||
chmod -R 500 $HOME/plugins/bStats/ $HOME/plugins/Essentials/userdata/ $HOME/plugins/PluginMetrics/
|
||||
chmod -R 500 $HOME/plugins/bStats/ $HOME/plugins/PluginMetrics/
|
||||
|
||||
dtach -n alivecheck $HOME/script/alivecheck.sh
|
||||
|
||||
# Make certain files read-only
|
||||
|
||||
chmod 400 bukkit.yml
|
||||
chmod 400 commands.yml
|
||||
chmod 400 eula.txt
|
||||
chmod 400 permissions.yml
|
||||
chmod 400 server-icon.png
|
||||
chmod 400 wepif.yml
|
||||
|
||||
while true; do
|
||||
java -Xmx384M -Xtune:virtualized -Xaggressive -Xcompressedrefs -Xdump:tool:events=throw+systhrow,filter=java/lang/OutOfMemoryError,exec="kill -9 %pid" -Xgc:concurrentScavenge -Xgc:dnssExpectedTimeRatioMaximum=3 -Xgc:scvNoAdaptiveTenure -Xdisableexplicitgc -Xshareclasses -Xshareclasses:noPersistentDiskSpaceCheck -XX:MaxDirectMemorySize=64M -XX:+UseContainerSupport -Dpaper.playerconnection.keepalive=360 -DIReallyKnowWhatIAmDoingISwear -jar server.jar
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in a new issue