You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/08/25 22:58:21 UTC

[Solr Wiki] Update of "SolrJetty" by WillOberman

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrJetty" page has been changed by WillOberman:
http://wiki.apache.org/solr/SolrJetty?action=diff&rev1=23&rev2=24

Comment:
The init.d script was wrong for jetty 6.x

  == Init script to run the Solr example ==
  This section describes how to to make the Solr example run automatically as a service on startup.  It assumes that the Solr distribution is unpacked, and has been tested by running ''java -jar start.jar'' from the example directory.
  
- Download the [[http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-distribution/src/main/resources/bin/jetty.sh|jetty.sh startup script]], and place it at /etc/init.d/jetty.   On RedHat systems, uncomment the chkconfig lines and use chkconfig to add it to the boot sequence.
+ Download the [[http://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk/jetty-distribution/src/main/resources/bin/jetty.sh|jetty.sh startup script]], and place it at /etc/init.d/jetty.   On RedHat systems, uncomment the chkconfig lines and use chkconfig to add it to the boot sequence.  Note: if you are using an older Solr distribution that uses Jetty 6.x, you'll have to download this [[http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1/bin/jetty.sh|jetty.sh startup script]] instead.
  
  Then create ''/etc/default/jetty'', to configure the startup script.  Assuming that the full Solr example (including start.jar) was placed in ''/opt/solr'', the configuration would look something like this: