2018-08-22 13:27:15 -07:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
# Requires OpenRC >= 0.35
|
2019-02-10 11:25:34 -08:00
|
|
|
directory=/opt/pleroma
|
2018-08-22 13:27:15 -07:00
|
|
|
|
|
|
|
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
|
2019-01-28 00:18:11 -08:00
|
|
|
retry="SIGTERM/30/SIGKILL/5"
|
2018-08-22 13:27:15 -07:00
|
|
|
|
|
|
|
pidfile="/var/run/pleroma.pid"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need nginx postgresql
|
2019-02-10 11:25:34 -08:00
|
|
|
}
|