mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
21 lines
542 B
Plaintext
21 lines
542 B
Plaintext
#!/sbin/openrc-run
|
|||
|
|
# shellcheck shell=sh
|
||
|
|
#
|
||
|
|
# Copyright 1999-2026 Gentoo Authors
|
||
|
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
|
||
|
|
: "${supervisor:=supervise-daemon}"
|
||
|
|
|
||
|
|
description="Matrix-Telegram Messenger puppeting bridge"
|
||
|
|
command="/usr/bin/mautrix-telegram"
|
||
|
|
command_args="-c ${MAUTRIX_TELEGRAM_CONFIG:-/etc/mautrix/mautrix_telegram.yaml} ${MAUTRIX_TELEGRAM_OPTS}"
|
||
|
|
command_user="mautrix-telegram:mautrix"
|
||
|
|
|
||
|
|
depend() {
|
||
|
|
need net
|
||
|
|
use dns postgresql
|
||
|
|
}
|
||
|
|
|
||
|
|
start_pre() {
|
||
|
|
checkpath -d -o "${command_user}" /run/mautrix-telegram
|
||
|
|
}
|