Add net-im/matterbridge alongside associated dependencies
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
17
net-im/matterbridge/files/matterbridge.initd-r2
Normal file
17
net-im/matterbridge/files/matterbridge.initd-r2
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2026 Shin'ya Minazuki
|
||||
|
||||
: ${MATTERBRIDGE_USER="matterbridge"}
|
||||
: ${MATTERBRIDGE_GROUP="matterbridge"}
|
||||
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
command="/usr/bin/${RC_SVCNAME}"
|
||||
command_args="-conf /etc/matterbridge.toml"
|
||||
command_background="true"
|
||||
command_user="${MATTERBRIDGE_USER}:${MATTERBRIDGE_GROUP}"
|
||||
pidfile="/run/matterbridge.pid"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
13
net-im/matterbridge/files/matterbridge.service
Normal file
13
net-im/matterbridge/files/matterbridge.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Matterbridge
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/matterbridge -conf /etc/matterbridge.toml
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
User=matterbridge
|
||||
Group=matterbridge
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user