aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorkbowling <kbowling@FreeBSD.org>2019-03-01 04:13:18 +0800
committerkbowling <kbowling@FreeBSD.org>2019-03-01 04:13:18 +0800
commite1127f58fdaf543ff4134998ebd4c793805a24be (patch)
tree81c82a24a20693febba7ffc9d6d06ab814250cab /databases
parentf13c8ffaa1e370a97d1c87b1a6f4c9902f63dbf1 (diff)
downloadfreebsd-ports-gnome-e1127f58fdaf543ff4134998ebd4c793805a24be.tar.gz
freebsd-ports-gnome-e1127f58fdaf543ff4134998ebd4c793805a24be.tar.zst
freebsd-ports-gnome-e1127f58fdaf543ff4134998ebd4c793805a24be.zip
databases/opentsdb: rc script should allow JVMARGS to be set
PR: 209059 Approved by: krion (mentor) Sponsored by: BBOX.io Differential Revision: https://reviews.freebsd.org/D19362
Diffstat (limited to 'databases')
-rw-r--r--databases/opentsdb/files/opentsdb.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/databases/opentsdb/files/opentsdb.in b/databases/opentsdb/files/opentsdb.in
index 3c6c73573742..380b77b3f901 100644
--- a/databases/opentsdb/files/opentsdb.in
+++ b/databases/opentsdb/files/opentsdb.in
@@ -18,6 +18,7 @@ load_rc_config "${name}"
: ${opentsdb_enable:=NO}
: ${opentsdb_user:=opentsdb}
+: ${opentsdb_jvmargs:=-enableassertions -enablesystemassertions}
: ${opentsdb_opts:=tsd 2> %%OPENTSDB_LOGDIR%%/error.log 1> %%OPENTSDB_LOGDIR%%/tsdb.log}
pidfile="%%OPENTSDB_RUNDIR%%/${name}.pid"
@@ -27,5 +28,6 @@ procname="daemon*"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} ${opentsdb_daemon} ${opentsdb_opts}"
-run_rc_command "$1"
+export JVMARGS=${opentsdb_jvmargs}
+run_rc_command "$1"