blob: f03a70fab2856b5cfa77efd731cc93dd360a42ba (
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
27
28
29
30
|
#!/sbin/openrc-run
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# shellcheck shell=sh
description="Bouncer-style Matrix IRC bridge"
supervisor="supervise-daemon"
command="/usr/bin/python"
command_args="-m heisenbridge \
-c ${REGISTRATION:-/var/lib/heisenbridge/registration.yaml} \
${LISTEN_ADDRESS+-l ${LISTEN_ADDRESS}} \
${LISTEN_PORT+-p ${LISTEN_PORT}} \
${OWNER+-o ${OWNER}} \
-u heisenbridge -g heisenbridge \
${HEISENBRIDGE_OPTS} ${HOMESERVER}"
pidfile="/run/${RC_SVCNAME}.pid"
output_logger="logger -p daemon.info -t heisenbridge --"
error_logger="logger -p daemon.err -t heisenbridge --"
depend() {
use dns logger
need net
}
start_pre() {
checkpath -d -m 0755 -o heisenbridge:heisenbridge /var/lib/heisenbridge
}
|