diff options
author | Julien Roy <julien@jroy.ca> | 2023-01-25 23:59:58 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2023-01-25 23:59:58 -0500 |
commit | 4451d0f190321c26d65591caa7728174d2bc8869 (patch) | |
tree | 23c247941369e5ca30dece782a5d3e9a67a2257e /net-im/mautrix-discord/files | |
parent | dba4da45c0e9d06284062a814a258b7e64b33575 (diff) | |
download | MrRoy-Overlay-4451d0f190321c26d65591caa7728174d2bc8869.tar.gz MrRoy-Overlay-4451d0f190321c26d65591caa7728174d2bc8869.tar.bz2 MrRoy-Overlay-4451d0f190321c26d65591caa7728174d2bc8869.zip |
net-im/mautrix-discord: new package, add 0_pre20230124
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'net-im/mautrix-discord/files')
-rw-r--r-- | net-im/mautrix-discord/files/mautrix-slack.initd | 25 | ||||
-rw-r--r-- | net-im/mautrix-discord/files/mautrix-slack.service | 12 |
2 files changed, 37 insertions, 0 deletions
diff --git a/net-im/mautrix-discord/files/mautrix-slack.initd b/net-im/mautrix-discord/files/mautrix-slack.initd new file mode 100644 index 0000000..18c6b06 --- /dev/null +++ b/net-im/mautrix-discord/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-discord daemon" +description="A Matrix-Discord puppeting bridge" +module="mautrix_discord" + +pidfile="/run/${RC_SVCNAME}.pid" +command="/usr/bin/mautrix-discord" +command_args="-c /etc/mautrix/${module}.yaml -r /var/lib/mautrix/discord/registration.yaml" +command_background=true +command_user="mautrix-discord:mautrix" + +output_log="/var/log/mautrix/discord/daemon.log" +error_log="/var/log/mautrix/discord/daemon.log" + +depend() { + need net +} + +start_pre() { + checkpath -d -m 0755 -o "$command_user" /var/lib/mautrix/discord + checkpath -f -m 0644 -o "$command_user" "$output_log" +} diff --git a/net-im/mautrix-discord/files/mautrix-slack.service b/net-im/mautrix-discord/files/mautrix-slack.service new file mode 100644 index 0000000..a9ed892 --- /dev/null +++ b/net-im/mautrix-discord/files/mautrix-slack.service @@ -0,0 +1,12 @@ +[Unit] +Description=A Matrix-Discord puppeting bridge +After=network.target + +[Service] +User=mautrix-discord +Group=mautrix +Restart=always +ExecStart=/usr/bin/mautrix-discord -c /etc/mautrix/mautrix_discord.yaml -r /var/lib/mautrix/discord/registration.yaml + +[Install] +WantedBy=multi-user.target
\ No newline at end of file |