diff options
author | Haelwenn <git.pleroma.social@hacktivis.me> | 2018-08-23 17:09:37 +0000 |
---|---|---|
committer | Haelwenn <git.pleroma.social@hacktivis.me> | 2018-08-23 17:09:37 +0000 |
commit | ab85fef07648604577a9bf21b9d3e1d78e0fa07f (patch) | |
tree | 9de8ee2f97b299e1bcc67f720e7249e8d0e49757 | |
parent | e416469a409e6ff4bea84da40a5af43fe532a2ce (diff) | |
parent | 9c5ca9e15e82cbfc95d6ef6e7218919872c69ec5 (diff) | |
download | pleroma-ab85fef07648604577a9bf21b9d3e1d78e0fa07f.tar.gz |
Merge branch 'develop' into 'develop'
Add an OpenRC service
See merge request pleroma/pleroma!285
-rwxr-xr-x | installation/init.d/pleroma | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/installation/init.d/pleroma b/installation/init.d/pleroma new file mode 100755 index 000000000..9582d65d4 --- /dev/null +++ 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 |