restart_service
Restart a firewall service such as unbound, dhcpd, or openvpn on OPNsense or pfSense. Preview changes with dry-run mode before applying the restart.
Instructions
[WRITE][risk=medium] Restart a firewall service (unbound, dhcpd, openvpn, ...).
REFUSES the service that answers this appliance's own management API (nginx / lighttpd / configd / webgui and friends): restarting it kills the connection this tool is using, so the restart cannot be observed and the undo cannot run. Restart those from the console instead. Pass dry_run=True to preview.
Args: service: Service name to restart. dry_run: If True, preview without restarting. target: Firewall target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| service | Yes |