gentoo-overlay/net-im/conduit/files/conduit.initd-r1
Manuel Friedli 906e1431ca
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone Build encountered an error
Add conduit 0.10.3.
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
2025-05-18 18:44:42 +02:00

26 lines
622 B
Text

#!/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}"
}