Permit control of the flags passed to java through a new variable

called unifi_javaflags

Users have requested an easy way to make this change. Ubiquiti
recommends 1024M by default, but the actual memory requirement depends
on the size of your environment. It is safe to run at much lower levels
with only a few APs.
This commit is contained in:
Mark Felder 2014-03-10 02:48:21 +00:00
parent 9ca5f96eb5
commit 74b6bf2aef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347714
4 changed files with 6 additions and 4 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= unifi2
PORTVERSION= 2.4.6
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-mgmt java
MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/
DISTNAME= UniFi.unix

View file

@ -23,10 +23,11 @@ load_rc_config ${name}
: ${unifi_user:=%%USERS%%}
: ${unifi_group:=%%GROUPS%%}
: ${unifi_chdir=%%JAVASHAREDIR%%/unifi}
: ${unifi_javaflags:="-Djava.awt.headless=true -Xmx1024M"}
command_interpreter=.
command="%%PREFIX%%/bin/java"
command_args="-Djava.awt.headless=true -Xmx1024M -jar lib/ace.jar"
command_args="${unifi_javaflags} -jar lib/ace.jar"
start_cmd=start_cmd
start_precmd=start_precmd
stop_cmd=stop_cmd

View file

@ -3,7 +3,7 @@
PORTNAME= unifi3
PORTVERSION= 3.1.10
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-mgmt java
MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/
DISTNAME= UniFi.unix

View file

@ -23,10 +23,11 @@ load_rc_config ${name}
: ${unifi_user:=%%USERS%%}
: ${unifi_group:=%%GROUPS%%}
: ${unifi_chdir=%%JAVASHAREDIR%%/unifi}
: ${unifi_javaflags:="-Djava.awt.headless=true -Xmx1024M"}
command_interpreter=.
command="%%PREFIX%%/bin/java"
command_args="-Djava.awt.headless=true -Xmx1024M -jar lib/ace.jar"
command_args="${unifi_javaflags} -jar lib/ace.jar"
start_cmd=start_cmd
start_precmd=start_precmd
stop_cmd=stop_cmd