aboutsummaryrefslogtreecommitdiff
path: root/net-im/mautrix-facebook/files/mautrix-facebook.initd
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/mautrix-facebook/files/mautrix-facebook.initd')
-rw-r--r--net-im/mautrix-facebook/files/mautrix-facebook.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-im/mautrix-facebook/files/mautrix-facebook.initd b/net-im/mautrix-facebook/files/mautrix-facebook.initd
new file mode 100644
index 0000000..dfcd8eb
--- /dev/null
+++ b/net-im/mautrix-facebook/files/mautrix-facebook.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="mautrix-facebook daemon"
+description="A Matrix-Facebook Messenger puppeting bridge"
+module="mautrix_facebook"
+
+pidfile="/run/${RC_SVCNAME}.pid"
+command="/usr/bin/python"
+command_args="-m ${module} -c /etc/mautrix/${module}.yaml"
+command_background=true
+command_user="mautrix-facebook:mautrix-facebook"