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