3 # Default init file for Pleroma on OpenBSD
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
13 daemon="/usr/local/bin/elixir"
14 daemon_flags="--detached -S /usr/local/bin/mix phx.server"
15 daemon_user="_pleroma"
23 pgrep -q -U _pleroma -f "phx.server"
27 ${rcexec} "cd pleroma; ${daemon} ${daemon_flags}"
31 pkill -q -U _pleroma -f "phx.server"