unit_status
Inspect a systemd unit's load, active/sub state, result, main PID, and recent journal entries to triage service issues without write access.
Instructions
One unit's load, active and sub state, result and main PID, plus its last journal entries (default 20, at most 1000). Read-only.
Text is redacted and capped at 4096 bytes per value and 65536 bytes in all; a cut value ends in [TRUNCATED] and sets truncated to true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| lines | No | ||
| scope | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| scope | Yes | ||
| result | Yes | ||
| entries | Yes | ||
| sub_state | Yes | ||
| truncated | Yes | ||
| load_state | Yes | ||
| description | Yes | ||
| active_state | Yes | ||
| exec_main_pid | Yes |