mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
23 lines
515 B
Text
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
|
|
}
|