control_service
Start, stop, or restart systemd services and wait until systemd completes; optionally stop dependent services with with_dependents.
Instructions
Starts, stops or restarts a systemd service (systemd services cannot be paused) and waits until systemd has done it. Stopping one that others depend on fails and names them, unless with_dependents=true stops those too. It changes what runs now, not how the service starts (set_service_startup); get_service shows its state and dependents. Unless Anabolic runs as root, pkexec asks for an administrator's password on the desktop, and the call fails when that dialog is dismissed or cannot be shown.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"action": "<action>"
},
"name": "control_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The service's name, as list_services gives it. | |
| action | Yes | start, stop, restart, pause or continue (pause and continue on Windows only). | |
| with_dependents | No | For stop and restart: also stop the running services that depend on it (otherwise stopping it is refused while any runs). |