void-packages/srcpkgs/dendrite/files/dendrite-monolith-server/run

8 lines
219 B
Bash
Executable File

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