diff --git a/rootfs/etc/services.d/home-assistant/run b/rootfs/etc/services.d/home-assistant/run index 750d00a91ecbaf8930b8c31123ef48a47aa0dd0a..11af113e4b9eb0a0e273e6fe253e494d58918357 100644 --- a/rootfs/etc/services.d/home-assistant/run +++ b/rootfs/etc/services.d/home-assistant/run @@ -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