Skip to content

Commit

Permalink
Disable jemalloc via specific ENV variable, see Issue#36237 (home-ass…
Browse files Browse the repository at this point in the history
  • Loading branch information
kantselovich authored Jun 2, 2020
1 parent 5f4fdaa commit f94bbda
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rootfs/etc/services.d/home-assistant/run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
cd /config || bashio::exit.nok "Can't find config folder!"

# 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

0 comments on commit f94bbda

Please sign in to comment.