Announcement

Collapse
No announcement yet.

Suggestion startup.sh using headless

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Suggestion startup.sh using headless

    Hey,
    With the frequent updates of java I would like to propose a suggestion in /nxrelay/bin/startup.sh

    Code:
    #!/bin/sh
    cd $(dirname $0)
    CD ..
    export NX_HOME=$PWD
    export PATH=$PATH:/usr/bin:/usr/local/bin
    case $1 in
    '-d')
    nohup /usr/lib/jvm/jre-1.8.0/bin/java -Djava.net.preferIPv4Stack=true -Xmx512m -Djava.security.egd=file:/dev/./urandom -cp $NX_HOME/nxrelay.jar :$NX_HOME/lib/*: nxrelay.Main > /dev/null 2>&1 &
    ;;
    *)
    [HASHTAG="t34"]java[/HASHTAG] -Xmx512m -cp $NX_HOME/nxrelay.jar:$NX_HOME/lib/*: nxrelay.Main
    /usr/lib/jvm/jre-1.8.0/bin/java -Djava.net.preferIPv4Stack=true -Xmx512m -Djava.security.egd=file:/dev/./urandom -cp $NX_HOME/nxrelay.jar: $NX_HOME/lib/*: nxrelay.Main
    ;;
    esac
    When installing Nxrelay, the java-1.8.0-openjdk-headless package comes along. This way, the host machine is free to run other Java applications without disturbing the proper functioning of nxrelay. I believe this is also valid for nxfilter.

    Note: Tests carried out on centos7 and rocklinux8.8

  • #2
    What do you mean by 'When installing Nxrelay, the java-1.8.0-openjdk-headless package comes along'? We ship a stripped down version of Java with our EXE package but not for others. There are people wanting to use other versions of Java. And it's not just for CentOS and RockLinux. There are too many Linux variations and there are also people running NxRelay on BSD or other Unix like OS. We can't cover everything.

    And we just 'recommend' using Java 1.8. NxRelay runs with other Java versions mostly. The reason we recommend v1.8 is that when Java gets updated, OpenJDK also gets updated and there might be some issuens with OpenJDK. So, we recommend a bit older or stable version. v1.8 is not a requirement.

    Comment

    Working...
    X