Disable jemalloc via specific ENV variable, see Issue#36237 (#36274)

This commit is contained in:
Konstantin Antselovich authored and GitHub committed 2020-06-03 01:08:50 +02:00
1 parent 5f4fdaa171
commit f94bbdab61
1 file changed
+5 -3
+5 -3
View File
@@ -2,9 +2,11 @@
# ==============================================================================
# Start Home Assistant service
# ==============================================================================
cd /config || bashio::exit.nok "Can't find config folder!"
# Enable Jemalloc for Home Assistant Core
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
# Enable Jemalloc for Home Assistant Core, unless disabled
if [[ -z "${DISABLE_JEMALLOC+x}" ]]; then
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
fi
exec python3 -m homeassistant --config /config