home-assistant-core/rootfs/etc/services.d/home-assistant/run
Pascal Vizeli 6368df5e37
Base Image: S6 overlay & jemalloc update (#72425)
* Update base image with new s6-Overlay & jemalloc

* add build version

* Update finish
2022-05-24 15:51:06 +02:00

14 lines
596 B
Plaintext
Executable file

#!/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