1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/dendrite/dendrite.initd
2022-04-10 22:20:40 +02:00

28 lines
701 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
name="Dendrite"
description="Second-generation Matrix homeserver written in Go"
: ${dendrite_config:="/etc/dendrite/dendrite.yaml"}
command="/usr/bin/dendrite"
command_args="-config $dendrite_config $dendrite_opts"
command_user="dendrite:dendrite"
# make relative paths in config relative to the state directory
directory="/var/lib/dendrite"
# increase the amount of allowed file descriptors
rc_ulimit="-n 65535"
depend() {
need net
after firewall
use postgresql turnserver
}
start_pre() {
checkpath --directory --owner "$command_user" --mode 755 /var/lib/dendrite
checkpath --directory --owner "$command_user" --mode 755 /var/log/dendrite
}