Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.

Commit 9d25be9

Browse files
committed
Update run args to match upstream
1 parent 4dde84e commit 9d25be9

File tree

1 file changed

+31
-2
lines changed
  • root/etc/s6-overlay/s6-rc.d/svc-unifi-controller

1 file changed

+31
-2
lines changed

root/etc/s6-overlay/s6-rc.d/svc-unifi-controller/run

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,38 @@ fi
88
if [[ -z ${MEM_STARTUP} ]] || [[ ${MEM_STARTUP} = "default" ]]; then
99
exec \
1010
s6-notifyoncheck -d -n 600 -w 1000 \
11-
cd /config s6-setuidgid abc java -Xmx"${MEM_LIMIT}M" -Dlog4j2.formatMsgNoLookups=true --add-opens=java.base/java.time=ALL-UNNAMED -jar /usr/lib/unifi/lib/ace.jar start;
11+
cd /config s6-setuidgid abc java \
12+
-Xmx"${MEM_LIMIT}M" \
13+
-Dlog4j2.formatMsgNoLookups=true \
14+
-Dfile.encoding=UTF-8 \
15+
-Djava.awt.headless=true \
16+
-Dapple.awt.UIElement=true \
17+
-XX:+UseParallelGC \
18+
-XX:+ExitOnOutOfMemoryError \
19+
-XX:+CrashOnOutOfMemoryError \
20+
--add-opens java.base/java.lang=ALL-UNNAMED \
21+
--add-opens java.base/java.time=ALL-UNNAMED \
22+
--add-opens java.base/sun.security.util=ALL-UNNAMED \
23+
--add-opens java.base/java.io=ALL-UNNAMED \
24+
--add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED \
25+
-jar /usr/lib/unifi/lib/ace.jar start;
1226
else
1327
exec \
1428
s6-notifyoncheck -d -n 600 -w 1000 \
15-
cd /config s6-setuidgid abc java -Xms"${MEM_STARTUP}M" -Xmx"${MEM_LIMIT}M" -Dlog4j2.formatMsgNoLookups=true --add-opens=java.base/java.time=ALL-UNNAMED -jar /usr/lib/unifi/lib/ace.jar start;
29+
cd /config s6-setuidgid abc java \
30+
-Xms"${MEM_STARTUP}M" \
31+
-Xmx"${MEM_LIMIT}M" \
32+
-Dlog4j2.formatMsgNoLookups=true \
33+
-Dfile.encoding=UTF-8 \
34+
-Djava.awt.headless=true \
35+
-Dapple.awt.UIElement=true \
36+
-XX:+UseParallelGC \
37+
-XX:+ExitOnOutOfMemoryError \
38+
-XX:+CrashOnOutOfMemoryError \
39+
--add-opens java.base/java.lang=ALL-UNNAMED \
40+
--add-opens java.base/java.time=ALL-UNNAMED \
41+
--add-opens java.base/sun.security.util=ALL-UNNAMED \
42+
--add-opens java.base/java.io=ALL-UNNAMED \
43+
--add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED \
44+
-jar /usr/lib/unifi/lib/ace.jar start;
1645
fi

0 commit comments

Comments
 (0)