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

Commit eb15e2c

Browse files
committed
Basically revert #119 because it was implemented on incomplete information
1 parent 4f7a686 commit eb15e2c

File tree

1 file changed

+10
-6
lines changed
  • root/etc/services.d/unifi

1 file changed

+10
-6
lines changed

root/etc/services.d/unifi/run

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#!/usr/bin/with-contenv bash
22

3+
if [ -z ${MEM_LIMIT+x} ]; then
4+
MEM_LIMIT="1024"
5+
fi
6+
37
cd /config || exit
48

5-
if [[ "$(uname -m)" == "armv7l" ]]; then
6-
# We don't support armhf any more
7-
sleep infinity
9+
if [ -z ${MEM_STARTUP+x} ]; then
10+
exec \
11+
s6-setuidgid abc java -Xmx"${MEM_LIMIT}M" -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
12+
else
13+
exec \
14+
s6-setuidgid abc java -Xms"${MEM_STARTUP}M" -Xmx"${MEM_LIMIT}M" -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;
815
fi
9-
10-
exec \
11-
s6-setuidgid abc java -Dlog4j2.formatMsgNoLookups=true -jar /usr/lib/unifi/lib/ace.jar start;

0 commit comments

Comments
 (0)