restart_service
Restarts a system service by stopping and then starting it again. Specify the service name (e.g., nginx, cron).
Instructions
Restart a system service. The service will be stopped and then started again. Some critical services (ssh, webmin) may be blocked in safe mode.
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": {
"service": "<service>"
},
"name": "restart_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server alias (e.g., 'pi1', 'web-server'). Uses default server if not specified. | |
| service | Yes | Name of the service to restart (e.g., 'nginx', 'cron') |