client-exec CLI
This commit is contained in:
@@ -105,6 +105,8 @@ byre never signs with a key on the machine it runs on. When a project checkout's
|
||||
|
||||
- The app pings every 10s and reconnects after 25s with no pong. That catches a socket byre dropped while the Mac slept: the close never reached the Mac, and without something sent on it the app would wait on it indefinitely.
|
||||
- `log show --info --last 10m --predicate 'subsystem == "run.fc.byre.mac"'` on a client shows `client request <id>: <op>` lines and `byre-hands` starts and exits, which are info level and kept only in memory, so they cover the last few minutes at most; connection drops (`client connection closed`, `client connection got no pong`) are notices, kept on disk, so `log show --start` reaches much further back for them. byre's log shows `client connected` and `client disconnected`.
|
||||
- The app acknowledges every request the moment it receives one; a client that hasn't within 2s fails the call, so a dead connection fails fast rather than at the request's own timeout.
|
||||
- `byre client-exec` (how to use it, and `byre screen`, is the `client-exec` knowledge-base article) calls `POST /api/clients/exec` on the loopback address with the loopback token, which byre exports as `BYRE_TOKEN` to everything it starts. byre's log has a `client exec` line per call with the client, command, exit status and duration, never the output, since it may hold credentials.
|
||||
|
||||
## Screen and app control
|
||||
|
||||
|
||||
Reference in New Issue
Block a user