list_services
List systemd services, optionally filtering by state (running, failed, etc.), name glob pattern, or unit type.
Instructions
List all systemd services. Optionally filter by state (running, exited, failed, inactive, all) and by name glob pattern (e.g. 'ssh*', 'cron*'). Defaults to listing all service units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Filter by service state (default: all) | all |
| pattern | No | Optional glob pattern to filter service names (e.g. 'ssh*', 'cron*') | |
| type | No | Systemd unit type to list (default: service) | service |