aboutsummaryrefslogtreecommitdiff
path: root/net-im/mautrix-slack/files/mautrix-slack.initd
diff options
context:
space:
mode:
authorJulien Roy <julien@jroy.ca>2023-01-25 22:16:12 -0500
committerJulien Roy <julien@jroy.ca>2023-01-25 22:16:12 -0500
commitc2d6b8c034a2f6abf6777ea89f39e512408510f9 (patch)
tree2f101c8264092585db9a0db70009e2b8cdcc9b3c /net-im/mautrix-slack/files/mautrix-slack.initd
parentf8deeddc6d2ff6672ca32dcccc9b590dd3ceb883 (diff)
downloadMrRoy-Overlay-c2d6b8c034a2f6abf6777ea89f39e512408510f9.tar.gz
MrRoy-Overlay-c2d6b8c034a2f6abf6777ea89f39e512408510f9.tar.bz2
MrRoy-Overlay-c2d6b8c034a2f6abf6777ea89f39e512408510f9.zip
net-im/mautrix-slack: new package, add 0_pre20230124
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'net-im/mautrix-slack/files/mautrix-slack.initd')
-rw-r--r--net-im/mautrix-slack/files/mautrix-slack.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-im/mautrix-slack/files/mautrix-slack.initd b/net-im/mautrix-slack/files/mautrix-slack.initd
new file mode 100644
index 0000000..d971fc5
--- /dev/null
+++ b/net-im/mautrix-slack/files/mautrix-slack.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="mautrix-slack daemon"
+description="A Matrix-Slack puppeting bridge"
+module="mautrix_slack"
+
+pidfile="/run/${RC_SVCNAME}.pid"
+command="/usr/bin/mautrix-slack"
+command_args="-c /etc/mautrix/${module}.yaml -r /var/lib/mautrix/slack/registration.yaml"
+command_background=true
+command_user="mautrix-slack:mautrix"
+
+output_log="/var/log/mautrix/slack/daemon.log"
+error_log="/var/log/mautrix/slack/daemon.log"
+
+depend() {
+ need net
+}
+
+start_pre() {
+ checkpath -d -m 0755 -o "$command_user" /var/lib/mautrix/slack
+ checkpath -f -m 0644 -o "$command_user" "$output_log"
+}