Merge pull request 'openbsd: update service file' (#866) from Oneric/akkoma:openbsd-rcd-file into develop

Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/866
This commit is contained in:
floatingghost 2025-01-05 15:44:47 +00:00
commit fe23660a2d

View file

@ -11,11 +11,13 @@
# #
daemon="/usr/local/bin/elixir" daemon="/usr/local/bin/elixir"
daemon_flags="--detached -S /usr/local/bin/mix phx.server" daemon_flags="-S /usr/local/bin/mix phx.server"
daemon_user="_akkoma" daemon_user="_akkoma"
daemon_execdir="/home/_akkoma/akkoma"
. /etc/rc.d/rc.subr . /etc/rc.d/rc.subr
rc_bg="YES"
rc_reload=NO rc_reload=NO
pexp="phx.server" pexp="phx.server"
@ -24,7 +26,7 @@ rc_check() {
} }
rc_start() { rc_start() {
${rcexec} "cd akkoma; ${daemon} ${daemon_flags}" rc_exec "${daemon} ${daemon_flags}"
} }
rc_stop() { rc_stop() {