diff --git a/rootfs/etc/services.d/home-assistant/run b/rootfs/etc/services.d/home-assistant/run index 750d00a91ec..11af113e4b9 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" - +# 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