From 11ceb187b67be3764359252965453926cc1d6e16 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 2 Sep 2025 18:35:00 +0200 Subject: [PATCH 1/2] fix(service): add service vs interactive detection to start.sh - Fix hanging rcctl/systemd service starts - Background mode (&) when no TTY (service context) - Foreground mode (exec) for interactive usage - POSIX-compatible detection via [ ! -t 0 ] Fixes service timeout issues on OpenBSD rcctl and Linux systemd. Tested on werner - service starts correctly and survives reboots. Fixes DAW/furt#99 --- scripts/start.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/start.sh b/scripts/start.sh index 899ccfe..0a43a7c 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -61,6 +61,16 @@ $LUA_COMMAND -e "require('cjson')" 2>/dev/null || { cd "$PROJECT_DIR" echo -e "${GREEN}Starting Furt...${NC}" -# Furt liest selbst seine Config aus furt.conf -exec "$LUA_COMMAND" src/main.lua + +# Service vs Interactive Detection +if [ ! -t 0 ] || [ ! -t 1 ]; then + # Service mode - Background + "$LUA_COMMAND" src/main.lua & +else + # Interactive mode - Foreground + exec "$LUA_COMMAND" src/main.lua +fi + +# Furt liest selbst seine Config aus furt.conf +#exec "$LUA_COMMAND" src/main.lua From 467e5257862fdc33ea2b405e05b1c358828f69d3 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 2 Sep 2025 18:35:00 +0200 Subject: [PATCH 2/2] chore: merkwerk auto-update --- .version_history | 1 + 1 file changed, 1 insertion(+) diff --git a/.version_history b/.version_history index 4f3f306..ace2eaa 100644 --- a/.version_history +++ b/.version_history @@ -7,3 +7,4 @@ 7ca7e6d6,8ec4019,feature/issue-89-multi-tenant,2025-08-28T17:53:42Z,michael,git,lua-api 25a29c32,5c17c86,feature/issue-89-multi-tenant,2025-08-29T18:01:55Z,michael,git,lua-api 25a29c32,9b19b6a,main,2025-08-29T20:01:44Z,michael,git,lua-api +25a29c32,11ceb18,fix/service-detection,2025-09-02T16:36:07Z,michael,git,lua-api