1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/dendrite/dendrite.initd
Michał Polański 95fdbb8148 testing/dendrite: new aport
Second-generation Matrix homeserver written in Go
https://github.com/matrix-org/dendrite
2020-10-09 12:41:02 +00:00

23 lines
515 B
Text

#!/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"
depend() {
need net
after firewall
}
start_pre() {
checkpath --directory --owner "$command_user" /var/log/dendrite
}