service_status
Check a systemd service's state: active/inactive/failed, enabled status, PID, memory usage, and recent logs. Diagnose failures and confirm service health.
Instructions
Check the status of a systemd service. Shows whether it's active/inactive/failed, its enabled state, PID, memory usage, and recent log lines from systemctl status output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | If true, query user-level services (--user) instead of system services. | |
| service | Yes | Name of the systemd service (e.g. 'nginx', 'sshd'). The '.service' suffix is optional. |