Skip to content

Instantly share code, notes, and snippets.

@jaredgriffith
jaredgriffith / sysconfig_solr
Created November 15, 2013 23:28
Sysconfig File for Solr
# options that are commonly overridden
SOLRROOT=/usr/local/solr1
SOLRHOME=./solr/
SOLRLOG=/usr/local/solr1/logs
LISTENPORT=8983
JMINMEM=256M
JMAXMEM=1024M
JBIN=/usr/bin/java
FUSER=/sbin/fuser
STOPKEY=solrjunkies
@jaredgriffith
jaredgriffith / init.dsolr
Created November 15, 2013 23:27
Solr init.d script (works on RHEL 6)
#!/bin/bash
### BEGIN INIT INFO
# Provides: solr
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop solr web server
### END INIT INFO