Skip to content

Instantly share code, notes, and snippets.

@ericwilson
Last active August 29, 2015 14:00
Show Gist options
  • Save ericwilson/11336187 to your computer and use it in GitHub Desktop.
Save ericwilson/11336187 to your computer and use it in GitHub Desktop.
Service script for the Solr search engine
# Service script for the Solr search engine
description "Service script for the Solr search engine"
author "Eric Wilson <eric@coolcompany.com>"
version "1.0.0"
start on runlevel [2345]
stop on runlevel [016]
kill timeout 30
respawn
script
chdir /opt/solr-4.2.0/example
exec /usr/bin/java -jar start.jar
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment