December 22 update
This commit is contained in:
@ -1,10 +1,8 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: head/textproc/elasticsearch7/files/elasticsearch.in 538703 2020-06-13 22:41:04Z glewis $
|
||||
#
|
||||
|
||||
# PROVIDE: elasticsearch
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# BEFORE: DAEMON
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable elasticsearch:
|
||||
@ -17,7 +15,7 @@
|
||||
# Set it to required group.
|
||||
# elasticsearch_config (path): Set to /usr/local/etc/elasticsearch/elasticsearch.yml by default.
|
||||
# Set it to the config file location.
|
||||
# elasticsearch_java_home (path): Set to /usr/local/openjdk8 by default.
|
||||
# elasticsearch_java_home (path): Set to /usr/local/openjdk11 by default.
|
||||
# Set it to the root of the JDK to use.
|
||||
#
|
||||
. /etc/rc.subr
|
||||
@ -46,7 +44,7 @@ command=/usr/local/lib/elasticsearch/bin/elasticsearch
|
||||
command_args="-d --pidfile=${pidfile}"
|
||||
|
||||
export ES_PATH_CONF=${elasticsearch_config}
|
||||
export JAVA_HOME=${elasticsearch_java_home}
|
||||
export ES_JAVA_HOME=${elasticsearch_java_home}
|
||||
|
||||
elasticsearch_precmd()
|
||||
{
|
||||
|
Reference in New Issue
Block a user