3 # Default init file for Akkoma on OpenBSD
5 # Simple installation instructions:
6 # 1. Install Akkoma per wiki instructions
7 # 2. Place this akkomad file in /etc/rc.d
8 # 3. Enable and start Akkoma
9 # # doas rcctl enable akkomad
10 # # doas rcctl start akkomad
13 daemon
="/usr/local/bin/elixir"
14 daemon_flags
="--detached -S /usr/local/bin/mix phx.server"
23 pgrep
-q -U _akkoma
-f "phx.server"
27 ${rcexec} "cd akkoma; ${daemon} ${daemon_flags}"
31 pkill
-q -U _akkoma
-f "phx.server"