I am trying to install Solr4 latest and want to run it with Jetty (servlet container).
JAVA_HOME=/usr/lib/jvm/jre
JAVA_OPTIONS="-Dsolr.solr.home=/opt/solr $JAVA_OPTIONS"
JETTY_HOME=/opt/solr
JETTY_USER=solr
JETTY_LOGS=/opt/solr/logs
JETTY_ARGS=/opt/solr/etc/jetty-plus.xml
I download jetty init script from LINK
I added it chkconfig. Issue which I facing is that when I start jetty it is not getting started. I followed the instructions provided on URL but nothing seems to be working.
netstat output
[root@localhost ~]# netstat -tlnp | grep 8983
[root@localhost ~]#
Nothing comes up in log file too I checked syslog as well as log defined in jetty too.
However when i run service jetty supervise it works and I can see the jetty is listening on port 8080. But its not getting started with init script.
Any clue what I have missed here, or let me know if any more infor is required from my end.
Aditional Info
java -version
java version "1.7.0_65"
cat /etc/issue
Amazon Linux AMI release 2014.03
Kernel \r on an \m
Solr 4.10
jetty-distribution-9.2.3.v20140905
EDITED
set -x
/etc/init.d/jetty restart
+ /etc/init.d/jetty restart
Stopping Jetty: OK
Starting Jetty: STARTED Jetty Thu Sep 18 18:07:27 UTC 2014
++ printf '\033]0;%s@%s:%s\007' root localhost '~'