1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/synapse/synapse.initd
2021-05-14 22:35:06 -03:00

21 lines
562 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
name="synapse"
description="Daemon for Synapse, the Matrix reference homeserver"
: ${command_user:="synapse:synapse"}
: ${config:="/etc/synapse/homeserver.yaml"}
command="/usr/bin/python3"
command_args="-m synapse.app.homeserver --config-path=$config $command_args"
depends() {
need net
}
start_pre() {
# /var/lib/synapse needs to be owned by the synapse user and so does the config location
checkpath --directory --owner "$command_user" /var/lib/synapse
checkpath --file --owner "$command_user" $config
}