diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-22 13:24:33 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-22 13:24:33 +0300 |
commit | bb40c33dd65aaeafaf3b74f4557deb75b0da8e93 (patch) | |
tree | 3ce3018910fb0c14b08232266f6795cea1496b4d /rel | |
parent | 51760c84b91f0af75200d2505f6b52ec1a4af484 (diff) | |
download | pleroma-bb40c33dd65aaeafaf3b74f4557deb75b0da8e93.tar.gz |
Add an OpenRC service for OTP releases
Diffstat (limited to 'rel')
-rwxr-xr-x | rel/files/installation/init.d/pleroma | 18 |
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 +} |