diff options
author | kaniini <nenolod@gmail.com> | 2018-08-26 21:06:15 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2018-08-26 21:06:15 +0000 |
commit | 0f5bff8c66fa2b67633fe05de8aaa1985f4d98f8 (patch) | |
tree | 45a693814a7f1f7bd2d6108732f2b75086f1fa0a /installation/init.d | |
parent | 30261772063a30ca0ef299f441cfed4630ffb630 (diff) | |
parent | 3448b434f54e8b4749524e3ccd876359a6501845 (diff) | |
download | pleroma-0f5bff8c66fa2b67633fe05de8aaa1985f4d98f8.tar.gz pleroma-0f5bff8c66fa2b67633fe05de8aaa1985f4d98f8.zip |
Merge branch 'develop' into 'feature/relay'
# Conflicts:
# lib/pleroma/web/activity_pub/utils.ex
Diffstat (limited to 'installation/init.d')
-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 |