summaryrefslogtreecommitdiff
path: root/rel
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-22 13:24:33 +0300
committerrinpatch <rinpatch@sdf.org>2019-06-22 13:24:33 +0300
commitbb40c33dd65aaeafaf3b74f4557deb75b0da8e93 (patch)
tree3ce3018910fb0c14b08232266f6795cea1496b4d /rel
parent51760c84b91f0af75200d2505f6b52ec1a4af484 (diff)
Add an OpenRC service for OTP releases
Diffstat (limited to 'rel')
-rwxr-xr-xrel/files/installation/init.d/pleroma18
1 files changed, 18 insertions, 0 deletions
diff --git a/rel/files/installation/init.d/pleroma b/rel/files/installation/init.d/pleroma
new file mode 100755
index 000000000..de007c5e3
--- /dev/null
+++ b/rel/files/installation/init.d/pleroma
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+
+# Requires OpenRC >= 0.35
+directory=/opt/pleroma
+
+command=/opt/pleroma/bin/pleroma
+command_args="start"
+command_user=pleroma
+command_background=1
+
+# Ask process to terminate within 30 seconds, otherwise kill it
+retry="SIGTERM/30/SIGKILL/5"
+
+pidfile="/var/run/pleroma.pid"
+
+depend() {
+ need nginx postgresql
+}