2 supervisor=supervise-daemon
3 command_user=pleroma:pleroma
5 # Ask process to terminate within 30 seconds, otherwise kill it
6 retry="SIGTERM/30/SIGKILL/5"
7 pidfile="/var/run/pleroma.pid"
12 : ${pleroma_port:-4000}
14 # Needs OpenRC >= 0.42
18 # put pleroma_console=YES in /etc/conf.d/pleroma if you want to be able to
19 # connect to pleroma via an elixir console
20 if yesno "${pleroma_console}"; then
22 command_args="--name pleroma@127.0.0.1 --erl '-kernel inet_dist_listen_min 9001 inet_dist_listen_max 9001 inet_dist_use_interface {127,0,0,1}' -S mix phx.server"
25 einfo "You can get a console by using this command as pleroma's user:"
26 einfo "iex --name console@127.0.0.1 --remsh pleroma@127.0.0.1"
30 command_args="phx.server"
40 # put pleroma_health=YES in /etc/conf.d/pleroma if you want healthchecking
41 # and make sure you have curl installed
42 yesno "$pleroma_health" || return 0
44 curl -q "localhost:${pleroma_port}/api/pleroma/healthcheck"