Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
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"