Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

Viewing file on branch master

1#!/sbin/openrc-run
2# Copyright 2021-2022 Gentoo Authors
3# Distributed under the terms of the GNU General Public License v2
4
5command=/usr/bin/matterbridge
6command_args="-conf ${MATTERBRIDGE_CONF:-/etc/matterbridge/bridge.toml} ${MATTERBRIDGE_ARGS}"
7command_user="matterbridge:matterbridge"
8pidfile="/run/${RC_SVCNAME}.pid"
9command_background=1
10output_log="/var/log/${RC_SVCNAME}.log"
11error_log="${output_log}"
12
13depend() {
14 need net
15}
16
17start_pre() {
18 checkpath -f "${output_log}" -o "${command_user}" || return 1
19}
20