ports/textproc/solr/patches/patch-bin_solr_in_sh

39 lines
1.6 KiB
Text

Index: bin/solr.in.sh
--- bin/solr.in.sh.orig
+++ bin/solr.in.sh
@@ -101,13 +101,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
@@ -116,14 +119,14 @@
# 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 jetty request log for all requests
#SOLR_REQUESTLOG_ENABLED=true