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"
13 : ${pleroma_port:-4000}
15 # Needs OpenRC >= 0.42
19 # put pleroma_console=YES in /etc/conf.d/pleroma if you want to be able to
20 # connect to pleroma via an elixir console
21 if yesno "${pleroma_console}"; then
23 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"
26 einfo "You can get a console by using this command as pleroma's user:"
27 einfo "iex --name console@127.0.0.1 --remsh pleroma@127.0.0.1"
31 command_args="phx.server"
41 # put pleroma_health=YES in /etc/conf.d/pleroma if you want healthchecking
42 # and make sure you have curl installed
43 yesno "$pleroma_health" || return 0
45 curl -q "localhost:${pleroma_port}/api/pleroma/healthcheck"