root@opnsense:~ # vi /usr/local/opnsense/service/conf/actions.d/actions_unbound_restart.conf
[restart]command:/usr/local/sbin/pluginctl dnsparameters:type:scriptmessage:Restart Unbound DNS Servicedescription:Restart Unbound DNS Service
root@opnsense:~ # service configd restartStopping configd...doneStarting configd.
root@opnsense:~ # configctl unbound_restart restartOK
Date MessageJan 24 16:01:29 unbound: [67123:0] info: start of service (unbound 1.8.3).
root@opnsense:~ # /usr/local/etc/rc.restart_webguiStarting web GUI...done.Generating RRD graphs...done.