4 # REQUIRE: DAEMON postgresql
7 # sudo -u pleroma MIX_ENV=prod elixir --erl \"-detached\" -S mix phx.server
14 desc="Pleroma Social Media Platform"
16 load_rc_config ${name}
18 : ${pleroma_user:=pleroma}
19 : ${pleroma_home:=$(getent passwd ${pleroma_user} | awk -F: '{print $6}')}
20 : ${pleroma_chdir:="${pleroma_home}/pleroma"}
21 : ${pleroma_env:="HOME=${pleroma_home} MIX_ENV=prod"}
23 command=/usr/local/bin/elixir
24 command_args="--erl \"-detached\" -S /usr/local/bin/mix phx.server"