Error: Unknown option

  • Error: Unknown option

    Hi,

    Since the first time I installed the RW server I had an error with the start script.

    If I set the server_memory to anything (here 4096):

    Shell-Script

    1. $ ./linux_startscript.sh start
    2. Use: screen [-opts] [cmd [args]]
    3. or: screen -r [host.tty]
    4. Options:
    5. -4 Resolve hostnames only to IPv4 addresses.
    6. -6 Resolve hostnames only to IPv6 addresses.
    7. -a Force all capabilities into each window's termcap.
    8. -A -[r|R] Adapt all windows to the new display width & height.
    9. -c file Read configuration file instead of '.screenrc'.
    10. -d (-r) Detach the elsewhere running screen (and reattach here).
    11. -dmS name Start as daemon: Screen session in detached mode.
    12. -D (-r) Detach and logout remote (and reattach here).
    13. -D -RR Do whatever is needed to get a screen session.
    14. -e xy Change command characters.
    15. -f Flow control on, -fn = off, -fa = auto.
    16. -h lines Set the size of the scrollback history buffer.
    17. -i Interrupt output sooner when flow control is on.
    18. -l Login mode on (update /var/run/utmp), -ln = off.
    19. -ls [match] or
    20. -list Do nothing, just list our SockDir [on possible matches].
    21. -L [file] Turn on output logging. Set logfile name.
    22. -m ignore $STY variable, do create a new screen session.
    23. -O Choose optimal output rather than exact vt100 emulation.
    24. -p window Preselect the named window if it exists.
    25. -q Quiet startup. Exits with non-zero return code if unsuccessful.
    26. -Q Commands will send the response to the stdout of the querying process.
    27. -r [session] Reattach to a detached screen process.
    28. -R Reattach if possible, otherwise start a new session.
    29. -s shell Shell to execute rather than $SHELL.
    30. -S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
    31. -t title Set title. (window's name).
    32. -T term Use term as $TERM for windows, rather than "screen".
    33. -U Tell screen to use UTF-8 encoding.
    34. -v Print "Screen version 4.05.00 (GNU) 10-Dec-16".
    35. -wipe [match] Do nothing, just clean up SockDir [on possible matches].
    36. -x Attach to a not detached screen. (Multi display mode).
    37. -X Execute <cmd> as a screen command in the specified session.
    38. Error: Unknown option 4096m
    39. RisingWorld-Marcolandia an error has occurred
    Alles anzeigen

    If I do not set it:

    Shell-Script

    1. $ ./linux_startscript.sh start
    2. No server_memory set. Server starts with 1024mb memory
    3. Use: screen [-opts] [cmd [args]]
    4. or: screen -r [host.tty]
    5. Options:
    6. -4 Resolve hostnames only to IPv4 addresses.
    7. -6 Resolve hostnames only to IPv6 addresses.
    8. -a Force all capabilities into each window's termcap.
    9. -A -[r|R] Adapt all windows to the new display width & height.
    10. -c file Read configuration file instead of '.screenrc'.
    11. -d (-r) Detach the elsewhere running screen (and reattach here).
    12. -dmS name Start as daemon: Screen session in detached mode.
    13. -D (-r) Detach and logout remote (and reattach here).
    14. -D -RR Do whatever is needed to get a screen session.
    15. -e xy Change command characters.
    16. -f Flow control on, -fn = off, -fa = auto.
    17. -h lines Set the size of the scrollback history buffer.
    18. -i Interrupt output sooner when flow control is on.
    19. -l Login mode on (update /var/run/utmp), -ln = off.
    20. -ls [match] or
    21. -list Do nothing, just list our SockDir [on possible matches].
    22. -L [file] Turn on output logging. Set logfile name.
    23. -m ignore $STY variable, do create a new screen session.
    24. -O Choose optimal output rather than exact vt100 emulation.
    25. -p window Preselect the named window if it exists.
    26. -q Quiet startup. Exits with non-zero return code if unsuccessful.
    27. -Q Commands will send the response to the stdout of the querying process.
    28. -r [session] Reattach to a detached screen process.
    29. -R Reattach if possible, otherwise start a new session.
    30. -s shell Shell to execute rather than $SHELL.
    31. -S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
    32. -t title Set title. (window's name).
    33. -T term Use term as $TERM for windows, rather than "screen".
    34. -U Tell screen to use UTF-8 encoding.
    35. -v Print "Screen version 4.05.00 (GNU) 10-Dec-16".
    36. -wipe [match] Do nothing, just clean up SockDir [on possible matches].
    37. -x Attach to a not detached screen. (Multi display mode).
    38. -X Execute <cmd> as a screen command in the specified session.
    39. Error: Unknown option x1024m
    40. RisingWorld-Marcolandia an error has occurred
    Alles anzeigen

    What I have been doing so far is remove the L option of screen, which seems to then ignore the error and run anyway...

    however I'd rather have that fixed, not work around it. Any ideas? Why is saying there is an error in the Xmx Java switch?

    This is Debian with Oracle Java 8 U131.
  • Ha! Found the solution.

    Separate the -L part:

    screen -dmS ${SCREEN_NAME} -L ${SCREEN_NAME} java -Xmx${MEMORY}m -Xms$(($MEMORY/2))m -jar server.jar

    '@red51 you may want to change the linux script as above.

    EDITED: I had previusly suggested screen -dmSL ${SCREEN_NAME} "java -Xmx${MEMORY}m -Xms$(($MEMORY/2))m -jar server.jar" but that just generates a log file with a long name...

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von MarcosRC ()

  • MarcosRC schrieb:

    Ha! Found the solution.

    Separate the -L part:

    screen -dmS ${SCREEN_NAME} -L ${SCREEN_NAME} java -Xmx${MEMORY}m -Xms$(($MEMORY/2))m -jar server.jar

    '@red51 you may want to change the linux script as above.

    EDITED: I had previusly suggested screen -dmSL ${SCREEN_NAME} "java -Xmx${MEMORY}m -Xms$(($MEMORY/2))m -jar server.jar" but that just generates a log file with a long name...

    Thanks Marcos - had the exact same problem. Never thought to look at the startup script itself I thought it would be long and convoluted so went straight to startpage - your solution is up the top :)