Thumbnail

rani/matterbridge.git

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

commit 8454e3487a2bfc2f8065a0265d1b0638624b76fa Author: jan Anja <bs@sysrq.in> Date: Mon Feb 21 02:24:42 2022 +0000 Add OpenRC service file (#1746) diff --git a/contrib/matterbridge.openrc b/contrib/matterbridge.openrc new file mode 100755 index 0000000..a3e188f --- /dev/null +++ b/contrib/matterbridge.openrc @@ -00 +119 @@ +#!/sbin/openrc-run +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command=/usr/bin/matterbridge +command_args="-conf ${MATTERBRIDGE_CONF:-/etc/matterbridge/bridge.toml} ${MATTERBRIDGE_ARGS}" +command_user="matterbridge:matterbridge" +pidfile="/run/${RC_SVCNAME}.pid" +command_background=1 +output_log="/var/log/${RC_SVCNAME}.log" +error_log="${output_log}" + +depend() { + need net +} + +start_pre() { + checkpath -f "${output_log}" -o "${command_user}" || return 1 +}