summaryrefslogtreecommitdiff
path: root/net-im/dendrite/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/dendrite/files')
-rw-r--r--net-im/dendrite/files/dendrite.conf5
-rw-r--r--net-im/dendrite/files/dendrite.init15
2 files changed, 20 insertions, 0 deletions
diff --git a/net-im/dendrite/files/dendrite.conf b/net-im/dendrite/files/dendrite.conf
new file mode 100644
index 0000000..3977fca
--- /dev/null
+++ b/net-im/dendrite/files/dendrite.conf
@@ -0,0 +1,5 @@
+# dendrite options
+dendrite_args="--config /etc/dendrite/dendrite.yaml"
+
+dendrite_group="dendrite"
+dendrite_user="dendrite"
diff --git a/net-im/dendrite/files/dendrite.init b/net-im/dendrite/files/dendrite.init
new file mode 100644
index 0000000..a492747
--- /dev/null
+++ b/net-im/dendrite/files/dendrite.init
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="Dendrite"
+description=""
+command=/usr/bin/dendrite
+command_args="${dendrite_args}"
+command_background="true"
+command_user="${dendrite_user}:${dendrite_group}"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need net
+}