Giter Site home page Giter Site logo

Comments (3)

lbdremy avatar lbdremy commented on June 26, 2024

Hi @nozpheratu,

The file containing these variables is generated here https://github.com/hipsnip-cookbooks/jetty/blob/master/recipes/default.rb#L204 (with this template https://github.com/hipsnip-cookbooks/jetty/blob/master/templates/default/jetty.default.erb), you should be able to find it at /etc/default/jetty. The variable are exported while running the init.d script here for Jetty 8 and here for Jetty 9.

Could you check these files are there and well generated, sorry that's hard to help you more here.
Also you can try /etc/init.d/jetty status to see the variables imported. Yes also you need to source /etc/default/jetty with . /etc/default/jetty before you can print the variables with echo $JETTY_HOME. Does it help?

from jetty.

nozpheratu avatar nozpheratu commented on June 26, 2024

Hey @lbdremy, thanks for the response. I had a look at /etc/default/jetty, and it looks like the variables are in fact defined:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JETTY_HOME=/usr/share/jetty
export JETTY_USER=jetty
export JETTY_PORT=8983
export JETTY_ARGS="-Djetty.port=8983 -Djetty.logs=/var/log/jetty"
export JAVA_OPTIONS="-Dsolr.data.dir=/usr/local/solr/data -Dsolr.solr.home=/usr/share/solr -Djava.util.logging.config.file=/usr/share/jetty/etc/logging.properties"
export JETTY_LOGS="/var/log/jetty"

Sorry, I'm new to this whole sys-admin thing, but what do you mean when you say "you need to source /etc/default/jetty with . /etc/default/jetty". Will this have to happen every time I login? If so, how do I go about making them permanent.

from jetty.

lbdremy avatar lbdremy commented on June 26, 2024

The dot is a command similar to source so . /etc/default/jetty is equivalent to source /etc/default/jetty, this command executes the content of the file passed as argument, in the current shell, in our case you get the variables loaded into your current environment. The init.d script for starting jetty does this every time it is run so it gets these variable into its environment and the environment of its children processes (notice the env variable are shared with the children not the parent). So yes you have to source the file every time you log-in, you can source the file at login in by adding the source line into the file ~/.bashrc or a similar file depending on your distribution.

from jetty.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.