diff options
author | Julien Roy <julien@jroy.ca> | 2023-01-26 00:09:48 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2023-01-26 00:09:48 -0500 |
commit | 05b73e92906535872fd2a86b291935e310df24b8 (patch) | |
tree | 33814ba3286f4efb732b9ec50457d22e539cae1d /net-im/mautrix-discord/files/mautrix-discord.initd | |
parent | 1ee55dfc60bc35866cd77fd8375f6ed7f10bbd89 (diff) | |
download | MrRoy-Overlay-05b73e92906535872fd2a86b291935e310df24b8.tar.gz MrRoy-Overlay-05b73e92906535872fd2a86b291935e310df24b8.tar.bz2 MrRoy-Overlay-05b73e92906535872fd2a86b291935e310df24b8.zip |
net-im/mautrix-discord/files: rename units
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'net-im/mautrix-discord/files/mautrix-discord.initd')
-rw-r--r-- | net-im/mautrix-discord/files/mautrix-discord.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-im/mautrix-discord/files/mautrix-discord.initd b/net-im/mautrix-discord/files/mautrix-discord.initd new file mode 100644 index 0000000..18c6b06 --- /dev/null +++ b/net-im/mautrix-discord/files/mautrix-discord.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" +} |