Non-interactive mode

    Joined
    Jun 20, 2013
    Messages
    1
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I have a headless server running Gentoo, how do I pass on options to start the server to the launcher java file?
     
    Joined
    Sep 10, 2013
    Messages
    71
    Reaction score
    0
    Write a script like this one




    #!/bin/bash
    cd \"$(dirname \"$0\")\"
    java -XX:MaxDirectMemorySize=1G -XX:hashCode=5 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djdk.map.althashing.threshold=128 -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider -Djava.awt.headless=true -Dsun.awt.keepWorkingSetOnMinimize=true -jar StarMade.jar -server