void-packages/srcpkgs/dendrite/files/dendrite-monolith-server/run
Joel Beckmeyer 5a2de66059 dendrite: update to 0.7.0.
add MAX_OPEN_FILES variable with default set to value recommended by
upstream (65535).
2022-03-25 22:54:53 +01:00

7 lines
235 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-monolith-server \
--config ${CONFIG_FILE:-/etc/dendrite/dendrite.yaml} ${OPTS}