Skip to content

Commit f94bbda

Browse files
authored
Disable jemalloc via specific ENV variable, see Issue#36237 (home-assistant#36274)
1 parent 5f4fdaa commit f94bbda

File tree

1 file changed

+5
-3
lines changed
  • rootfs/etc/services.d/home-assistant

1 file changed

+5
-3
lines changed

rootfs/etc/services.d/home-assistant/run

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
# ==============================================================================
33
# Start Home Assistant service
44
# ==============================================================================
5-
cd /config || bashio::exit.nok "Can't find config folder!"
65

7-
# Enable Jemalloc for Home Assistant Core
8-
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
6+
cd /config || bashio::exit.nok "Can't find config folder!"
97

8+
# Enable Jemalloc for Home Assistant Core, unless disabled
9+
if [[ -z "${DISABLE_JEMALLOC+x}" ]]; then
10+
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
11+
fi
1012
exec python3 -m homeassistant --config /config

0 commit comments

Comments
 (0)