#!/usr/bin/with-contenv bashio # ============================================================================== # Start Home Assistant service # ============================================================================== cd /config || bashio::exit.nok "Can't find config folder!" # Enable mimalloc for Home Assistant Core, unless disabled if [[ -z "${DISABLE_JEMALLOC+x}" ]]; then export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" export MALLOC_CONF="background_thread:true,metadata_thp:auto,dirty_decay_ms:20000,muzzy_decay_ms:20000" fi exec python3 -m homeassistant --config /config