$OpenBSD: patch-bin_solr_in_sh,v 1.3 2019/05/15 08:18:34 sthen Exp $

Index: bin/solr.in.sh
--- bin/solr.in.sh.orig
+++ bin/solr.in.sh
@@ -94,13 +94,16 @@ ENABLE_REMOTE_JMX_OPTS="true"
 #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
@@ -109,14 +112,14 @@ ENABLE_REMOTE_JMX_OPTS="true"
 # Solr provides a default Log4J configuration xml 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 log4j2.xml file
-#LOG4J_PROPS=/var/solr/log4j2.xml
+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 log4j2.xml
 #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 before starting Solr. Setting SOLR_LOG_PRESTART_ROTATION=true will let Solr take care of pre
 # start rotation of logs. This is false by default as log4j2 handles this for us. If you choose to use another log
