This commit is contained in:
Manuel Friedli 2025-11-14 14:34:35 +01:00
parent 1f7a521d07
commit 2ceadd4382
Signed by: manuel
GPG key ID: 41D08ABA75634DA1
10 changed files with 247 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#!/sbin/openrc-run
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="mautrix-signal daemon"
description="A Matrix-Signal puppeting bridge"
module="mautrix_signal"
pidfile="/run/${RC_SVCNAME}.pid"
command="/usr/bin/mautrix-signal"
command_args="-c /etc/mautrix/${module}.yaml -r /var/lib/mautrix/signal/registration.yaml"
command_background=true
command_user="mautrix-signal:mautrix"
output_log="/var/log/mautrix/signal/daemon.log"
error_log="/var/log/mautrix/signal/daemon.log"
depend() {
need net
}
start_pre() {
checkpath -d -m 0755 -o "$command_user" /var/lib/mautrix/signal
checkpath -f -m 0644 -o "$command_user" "$output_log"
}