Comments (3)
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.
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.
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)
- The default recipe does not run successfully without setting node.set['java']['jdk_version'] = 7
- The environment variable jetty.logs is not given to the java command at startup
- Should be possible to customize the configuration start.ini if necessary from the node attributes
- JAVA_OPTIONS in /etc/default/jetty keeps growing on each chef run HOT 1
- `sudo service jetty start` didn't work on CentOS 6.5 HOT 2
- Please tag the 0.9.0 release of this cookbook HOT 5
- Jetty 9 Doesn't Start HOT 3
- Jetty 9 has a split {jetty.home} and {jetty.base} use them
- No way to pass to --list-config to Jetty 9
- If you are going to use java.util.logging with chef, make jetty 9 use it too
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetty.