logo

pleroma

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

pleromad (625B)


  1. #!/bin/ksh
  2. #
  3. # Default init file for Pleroma on OpenBSD
  4. #
  5. # Simple installation instructions:
  6. # 1. Install Pleroma per wiki instructions
  7. # 2. Place this pleromad file in /etc/rc.d
  8. # 3. Enable and start Pleroma
  9. # # doas rcctl enable pleromad
  10. # # doas rcctl start pleromad
  11. #
  12. daemon="/usr/local/bin/elixir"
  13. daemon_flags="--detached -S /usr/local/bin/mix phx.server"
  14. daemon_user="_pleroma"
  15. . /etc/rc.d/rc.subr
  16. rc_reload=NO
  17. pexp="phx.server"
  18. rc_check() {
  19. pgrep -q -U _pleroma -f "phx.server"
  20. }
  21. rc_start() {
  22. ${rcexec} "cd pleroma; ${daemon} ${daemon_flags}"
  23. }
  24. rc_stop() {
  25. pkill -q -U _pleroma -f "phx.server"
  26. }
  27. rc_cmd $1