blob: 929168e2eb2affdb832d84d903c2ebca205cee78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/openrc-run
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# shellcheck shell=sh
export NO_COLOR=1
export CONDUIT_CONFIG=${CONDUIT_CONFIG:-/etc/conduit/conduit.toml}
description="Matrix homeserver"
supervisor="supervise-daemon"
command="/usr/bin/conduit"
command_user="conduit:conduit"
pidfile="/run/${RC_SVCNAME}.pid"
output_log="/var/log/conduit.log"
error_log="/var/log/conduit.log"
depend() {
need net
}
start_pre() {
checkpath -d -m 0750 -o "${command_user}" /var/lib/matrix-conduit
checkpath -f -m 0640 -o "${command_user}" "${output_log}"
}
|