logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

pleroma (624B)


  1. #!/bin/sh
  2. # $FreeBSD$
  3. # PROVIDE: pleroma
  4. # REQUIRE: DAEMON postgresql
  5. # KEYWORD: shutdown
  6. # sudo -u pleroma MIX_ENV=prod elixir --erl \"-detached\" -S mix phx.server
  7. . /etc/rc.subr
  8. name=pleroma
  9. rcvar=pleroma_enable
  10. desc="Pleroma Social Media Platform"
  11. load_rc_config ${name}
  12. : ${pleroma_user:=pleroma}
  13. : ${pleroma_home:=$(getent passwd ${pleroma_user} | awk -F: '{print $6}')}
  14. : ${pleroma_chdir:="${pleroma_home}/pleroma"}
  15. : ${pleroma_env:="HOME=${pleroma_home} MIX_ENV=prod"}
  16. command=/usr/local/bin/elixir
  17. command_args="--erl \"-detached\" -S /usr/local/bin/mix phx.server"
  18. procname="*beam.smp"
  19. run_rc_command "$1"