core/rootfs/etc/services.d/home-assistant/run

11 lines
426 B
Plaintext

#!/usr/bin/with-contenv bashio
# ==============================================================================
# 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"
exec python3 -m homeassistant --config /config