#!/bin/sh
[ -r ./conf ] && . ./conf
ulimit -n ${MAX_OPEN_FILES:-65535}
cd /var/lib/dendrite || exit 1
exec 2>&1
exec chpst -u _dendrite:_dendrite dendrite \
	--config ${CONFIG_FILE:-/etc/dendrite/dendrite.yaml} ${OPTS}
