Browse Source

java args var

master
dave 1 year ago
parent
commit
115f35c8ff
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      start

+ 2
- 1
start View File

@@ -1,10 +1,11 @@
#!/bin/sh -x

MEMLIMIT=${MEMLIMIT:-2G}
JAVAARGS=${JAVAARGS:-""}

test ! -f /srv/spigot/spigot.jar && cp /srv/spigot-default/spigot.jar /srv/spigot/
test ! -f /srv/spigot/eula.txt && cp /srv/spigot-default/eula.txt /srv/spigot/

cd /srv/spigot/

exec java -Xmx$MEMLIMIT -jar spigot.jar --nojline
exec java -Xmx$MEMLIMIT $JAVAARGS -jar spigot.jar --nojline $@

Loading…
Cancel
Save