Restart / Start / Stop a Host Service
service_actionRestarts, starts, or stops Unraid services (Samba, NFS, SSH, Docker, libvirt, Tailscale) over SSH, then checks and reports the resulting status instead of assuming success.
Instructions
⚠ Runs /etc/rc.d/rc.<service> restart|start|stop over SSH for samba, nfs, sshd, docker, libvirt, or tailscale, then reads the status back and reports it (never assumes success). restart is the normal use. stop additionally requires allow_stop: true because stopping samba/nfs cuts every client off their shares (and stopping sshd cuts off this very tool); stopping docker or libvirt is refused outright — use array_action or the web UI. Requires confirm: true AND acknowledge_risk: true, plus SSH. Check current state with service_list.
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>",
"action": "<action>"
},
"name": "service_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | rc.d verb to run. `stop` also needs `allow_stop: true` and is always refused for docker and libvirt. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| service | Yes | Host service to control (samba = SMB shares, libvirt = VMs); current state comes from service_list. | |
| allow_stop | No | Set `true` only after the user accepts every client of the service being cut off; needed for `stop`. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |
| acknowledge_risk | No | Set `true` only after the user accepts the service being interrupted for its clients; needed for every action. |