Keep daemon logs after a button restart

This commit is contained in:
Fisto
2026-09-17 08:42:09 +02:00
parent d886d22d89
commit 445c6ca2fb
3 changed files with 18 additions and 2 deletions
+8
View File
@@ -145,6 +145,14 @@ Core tab and the `/api/core/*` routes use it.
Verified live on 2026-09-13: the web UI started the client under auto-Xvfb, the bridge connected,
`state.get` returned the real account and guilds, and stop exited with code 0.
## Self-restart
`POST /api/daemon/restart` (Settings → Server → **Restart daemon**) replaces the daemon process
without touching the client. The replacement detaches, so the terminal or parent shell can close.
It appends stdout and stderr to `daemon.log` next to the token file (`poc/daemon.log` by default;
`VESKSLOP_DAEMON_LOG` overrides). On start it pauses scrapes still marked `running` by a previous
daemon, so a hard kill never leaves ghost jobs.
## Health endpoint
`GET /health` returns the core connection state, the socket path, the owner ID, and the query count.