logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: ab85fef07648604577a9bf21b9d3e1d78e0fa07f
parent: e416469a409e6ff4bea84da40a5af43fe532a2ce
Author: Haelwenn <git.pleroma.social@hacktivis.me>
Date:   Thu, 23 Aug 2018 17:09:37 +0000

Merge branch 'develop' into 'develop'

Add an OpenRC service

See merge request pleroma/pleroma!285

Diffstat:

Ainstallation/init.d/pleroma22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/installation/init.d/pleroma b/installation/init.d/pleroma @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +# Requires OpenRC >= 0.35 +directory=~pleroma/pleroma + +command=/usr/bin/mix +command_args="phx.server" +command_user=pleroma:pleroma +command_background=1 + +export PORT=4000 +export MIX_ENV=prod + +# Ask process to terminate within 30 seconds, otherwise kill it +retry="SIGTERM/30 SIGKILL/5" + +pidfile="/var/run/pleroma.pid" + +depend() { + need nginx postgresql +}+ \ No newline at end of file