stado host unit-log
Invocation
stado host unit-log [OPTIONS] <TARGET> <UNIT>Purpose
The tail of one managed unit's own log on TARGET. A crash-looping unit says why in its log and nowhere else: the health beacon reports it failed and carries no log, and `host exec` is a read-only allowlist that cannot read a file.
Required inputs and options
| Input or option | Contract |
|---|---|
<TARGET> | Positional input; required or optional as shown in the invocation. |
<UNIT> | Unit label as launchd knows it, e.g. com.wisent.always-on.brama |
--lines <LINES> | Tail this many lines from each declared log path (default 40) |
--json | Command option; required or optional as shown in the invocation. |
Output and state effect
It performs the operation described above and emits its operator result on standard output or standard error. Any state change is limited to the resources and records named by the purpose and options on this page.
Refusals
- Before dispatch, Stado refuses a missing required token shown in the invocation, an unknown option, or a value outside a listed value set; argument-usage failures exit with code 2.