diff options
author | Julien Roy <julien@jroy.ca> | 2024-05-20 15:42:10 -0400 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2024-05-20 16:13:28 -0400 |
commit | 079c62d64394b74e04c753c3e477b4c4c499a742 (patch) | |
tree | be33a1799bab5040d1a4d3f582c498344f8e5eae /net-im/maubot/files/maubot.initd | |
parent | b6819a6a869888db26fa2a9d733537d35a20219a (diff) | |
download | MrRoy-Overlay-079c62d64394b74e04c753c3e477b4c4c499a742.tar.gz MrRoy-Overlay-079c62d64394b74e04c753c3e477b4c4c499a742.tar.bz2 MrRoy-Overlay-079c62d64394b74e04c753c3e477b4c4c499a742.zip |
net-im/maubot: new package, add 0.4.2
Signed-off-by: Julien Roy <julien@jroy.ca>
Diffstat (limited to 'net-im/maubot/files/maubot.initd')
-rw-r--r-- | net-im/maubot/files/maubot.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-im/maubot/files/maubot.initd b/net-im/maubot/files/maubot.initd new file mode 100644 index 0000000..f4b109d --- /dev/null +++ b/net-im/maubot/files/maubot.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +name="maubot daemon" +description="A plugin-based Matrix bot system" +module="maubot" + +pidfile="/run/${RC_SVCNAME}.pid" +command="/usr/bin/python" +command_args="-m ${module} -c /etc/maubot/${module}.yaml" +command_background=true +command_user="maubot:maubot" + +output_log="/var/log/maubot/maubot_daemon.log" +error_log="/var/log/maubot/maubot_daemon.log" + +depend() { + need net +} + +start_pre() { + checkpath -d -m 0755 -o "$command_user" /var/lib/maubot + checkpath -d -m 0755 -o "$command_user" /var/lib/maubot/plugins + checkpath -d -m 0755 -o "$command_user" /var/lib/maubot/logs + checkpath -d -m 0755 -o "$command_user" /var/lib/maubot/trash + checkpath -f -m 0644 -o "$command_user" "$output_log" +} |