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

Commit c1ce809

Browse files
authored
Merge pull request #86 from linuxserver/mem-fix
Fix MEM_STARTUP issue
2 parents a55929e + 93fe29f commit c1ce809

File tree

1 file changed

+5
-4
lines changed
  • root/etc/services.d/unifi

1 file changed

+5
-4
lines changed

root/etc/services.d/unifi/run

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ if [ -z ${MEM_LIMIT+x} ]; then
77
fi
88

99
if [ -z ${MEM_STARTUP+x} ]; then
10-
MEM_STARTUP="1024M"
10+
exec \
11+
s6-setuidgid abc java -Xmx"${MEM_LIMIT}" -jar /usr/lib/unifi/lib/ace.jar start;
12+
else
13+
exec \
14+
s6-setuidgid abc java -Xms"${MEM_STARTUP}" -Xmx"${MEM_LIMIT}" -jar /usr/lib/unifi/lib/ace.jar start;
1115
fi
12-
13-
exec \
14-
s6-setuidgid abc java -Xms"${MEM_STARTUP}" -Xmx"${MEM_LIMIT}" -jar /usr/lib/unifi/lib/ace.jar start

0 commit comments

Comments
 (0)