Update to 2023-07-25 10:00

This commit is contained in:
Daniel Berteaud
2023-07-25 10:00:20 +02:00
parent a46990279b
commit e033ed4f44
13 changed files with 22 additions and 17 deletions

View File

@@ -190,9 +190,9 @@
line: "{{ item.option }}={{ item.value }}"
with_items:
- option: unifi.xmx
value: 4096
value: "{{ unifi_mem_limit }}"
- option: unifi.xms
value: 4096
value: "{{ (unifi_mem_limit * 0.5) | int }}"
- option: unifi.G1GC.enabled
value: 'true'
- option: autobackup.dir

View File

@@ -1,5 +1,5 @@
unifi.xmx={{ unifi_mem_limit }}
unifi.xms={{ unifi_mem_limit }}
unifi.xms={{ unifi_mem_limit * 0.5 | int }}
unifi.G1GC.enabled=true
autobackup.dir={{ unifi_root_dir }}/backup
unifi.http.port={{ unifi_http_port }}

View File

@@ -6,7 +6,7 @@ After=syslog.target network.target
Type=simple
User=unifi
WorkingDirectory={{ unifi_root_dir }}/app
ExecStart=/usr/bin/java -Djava.awt.headless=true -Xmx{{ unifi_mem_limit }}M -Xms{{ unifi_mem_limit }}M -Djava.net.preferIPv4Stack=true {% if system_proxy is defined and system_proxy != '' %}-Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} -Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} {% endif %}-jar {{ unifi_root_dir }}/app/lib/ace.jar start
ExecStart=/usr/bin/java -Djava.awt.headless=true -Xmx{{ unifi_mem_limit }}M -Xms{{ (unifi_mem_limit * 0.5) | int }}M -Djava.net.preferIPv4Stack=true {% if system_proxy is defined and system_proxy != '' %}-Dhttp.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttp.proxyPort={{ system_proxy | urlsplit('port') }} -Dhttps.proxyHost={{ system_proxy | urlsplit('hostname') }} -Dhttps.proxyPort={{ system_proxy | urlsplit('port') }} {% endif %}-jar {{ unifi_root_dir }}/app/lib/ace.jar start
ExecStop=/usr/bin/java -jar {{ unifi_root_dir }}/app/lib/ace.jar stop
SuccessExitStatus=143
PrivateTmp=yes