Manage Service
manage_serviceControl systemd units by starting, stopping, restarting, reloading, enabling, disabling, masking, or unmasking services; optionally use sudo for system units or target the user manager.
Instructions
Control a systemd unit.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "manage_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | unit name ('.service' appended if missing) | |
| sudo | No | elevate for system units | |
| user | No | act on the user manager (no sudo needed) | |
| action | Yes | start | stop | restart | reload | enable | disable | mask | unmask | try-restart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |