From d8c7ed70d0152059d60cd7d492927a7a407675ff Mon Sep 17 00:00:00 2001 From: eviloatmeal Date: Fri, 3 Jan 2025 21:17:32 +0100 Subject: [PATCH] openbsd: update service file Changes suggested and tested by eviloatmeal Fixes: https://akkoma.dev/AkkomaGang/akkoma/issues/864 --- installation/openbsd/rc.d/akkomad | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installation/openbsd/rc.d/akkomad b/installation/openbsd/rc.d/akkomad index 68be46c9a..fa3c19b2b 100755 --- a/installation/openbsd/rc.d/akkomad +++ b/installation/openbsd/rc.d/akkomad @@ -11,11 +11,13 @@ # 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_execdir="/home/_akkoma/akkoma" . /etc/rc.d/rc.subr +rc_bg="YES" rc_reload=NO pexp="phx.server" @@ -24,7 +26,7 @@ rc_check() { } rc_start() { - ${rcexec} "cd akkoma; ${daemon} ${daemon_flags}" + rc_exec "${daemon} ${daemon_flags}" } rc_stop() {