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.

27 lines
881B

  1. #!/bin/ksh
  2. #
  3. daemon="/usr/local/bin/elixir"
  4. daemon_flags="--detached -S /usr/local/bin/mix phx.server"
  5. daemon_user="_pleroma"
  6. . /etc/rc.d/rc.subr
  7. rc_reload=NO
  8. #pexp="/usr/local/lib/erlang19/erts-8.3/bin/beam -- -root /usr/local/lib/erlang19 -progname erl19 -- -home /home/_pleroma -- -pa /usr/local/lib/elixir/bin/../lib/eex/ebin /usr/local/lib/elixir/bin/../lib/elixir/ebin /usr/local/lib/elixir/bin/../lib/ex_unit/ebin /usr/local/lib/elixir/bin/../lib/iex/ebin /usr/local/lib/elixir/bin/../lib/logger/ebin /usr/local/lib/elixir/bin/../lib/mix/ebin -elixir ansi_enabled true -noshell -s elixir start_cli -noshell -noinput -extra --detached -S /usr/local/bin/mix phx.server"
  9. pexp="phx.server"
  10. rc_check() {
  11. pgrep -q -U _pleroma -f "phx.server"
  12. }
  13. rc_start() {
  14. ${rcexec} "cd pleroma; ${daemon} ${daemon_flags}"
  15. }
  16. rc_stop() {
  17. pkill -q -U _pleroma -f "phx.server"
  18. }
  19. rc_cmd $1