control_service
Start, stop, restart, reload, enable, or disable a systemd unit. Returns the return code and new active state.
Instructions
[ACTION] start/stop/restart/reload/enable/disable a systemd unit.
Gated by SYSCONTROL_ALLOW_ACTIONS. System scope may prompt for auth (polkit). Returns rc + new ActiveState.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | ||
| action | Yes | ||
| scope | No | system |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||