Files
hassio-addons-avm/ympd/root/etc/services.d/ympd/run
2021-08-24 14:35:11 +03:00

12 lines
263 B
Plaintext

#!/usr/bin/with-contenv bashio
set -e
# Enable Jemalloc for better memory handling
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
host=$(bashio::config 'host')
port=$(bashio::config 'port')
bashio::log.info 'Start ympd'
ympd -w 6680 -h "$host" -p "$port"