check_service_status
Check the operational status of a systemd service, returning active state, enabled state, and recent logs to diagnose issues.
Instructions
Check the operational status of a systemd service unit.
Args: service_name: Name of the system service (e.g. 'nginx', 'mysql', 'postgresql', 'ufw', 'docker').
Returns: JSON string with active state ('active', 'inactive', 'failed'), enabled state, and recent status logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |