$OpenBSD: patch-bin_solr_in_sh,v 1.1.1.1 2018/03/06 11:06:21 sthen Exp $

Index: bin/solr.in.sh
--- bin/solr.in.sh.orig
+++ bin/solr.in.sh
@@ -81,13 +81,16 @@
 #SOLR_OPTS="$SOLR_OPTS -Dsolr.autoCommit.maxTime=60000"
 #SOLR_OPTS="$SOLR_OPTS -Dsolr.clustering.enabled=true"
 
+# Bind only to localhost by default:
+SOLR_OPTS="$SOLR_OPTS -Djetty.host=localhost"
+
 # Location where the bin/solr script will save PID files for running instances
 # If not set, the script will create PID files in $SOLR_TIP/bin
-#SOLR_PID_DIR=
+SOLR_PID_DIR=${LOCALSTATEDIR}/db/solr
 
 # Path to a directory for Solr to store cores and their data. By default, Solr will use server/solr
 # If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
-#SOLR_HOME=
+SOLR_HOME=${LOCALSTATEDIR}/db/solr
 
 # Path to a directory that Solr will use as root for data folders for each core.
 # If not set, defaults to <instance_dir>/data. Overridable per core through 'dataDir' core property
@@ -96,14 +99,14 @@
 # Solr provides a default Log4J configuration properties file in server/resources
 # however, you may want to customize the log settings and file appender location
 # so you can point the script to use a different log4j.properties file
-#LOG4J_PROPS=/var/solr/log4j.properties
+LOG4J_PROPS=${LOCALSTATEDIR}/db/solr/log4j.properties
 
 # Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Default is INFO
 # This is an alternative to changing the rootLogger in log4j.properties
 #SOLR_LOG_LEVEL=INFO
 
 # Location where Solr should write logs to. Absolute or relative to solr start dir
-#SOLR_LOGS_DIR=logs
+SOLR_LOGS_DIR=/var/log/solr
 
 # Enables log rotation, cleanup, and archiving during start. Setting SOLR_LOG_PRESTART_ROTATION=false will skip start
 # time rotation of logs, and the archiving of the last GC and console log files. It does not affect Log4j configuration.
