From f94bbdab612b2f8cf01e1d510cc33290eb53fa5d Mon Sep 17 00:00:00 2001 From: Konstantin Antselovich <k.antselovich@reachlocal.com> Date: Tue, 2 Jun 2020 16:08:50 -0700 Subject: [PATCH] Disable jemalloc via specific ENV variable, see Issue#36237 (#36274) --- rootfs/etc/services.d/home-assistant/run | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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" +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 -- GitLab