From 7b9b1a69ff7db2e16a4e8cabee8752c4dfc5bedb Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 15 Mar 2023 09:14:39 +0100 Subject: [PATCH] unbound: replace with portable call The MVC mutable controller looks for "is running" which is always given if enabled and running. If not enabled the control will not show and if not running it will say so. --- src/opnsense/service/conf/actions.d/actions_unbound.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/service/conf/actions.d/actions_unbound.conf b/src/opnsense/service/conf/actions.d/actions_unbound.conf index 2d65531bc..5f0c666d8 100644 --- a/src/opnsense/service/conf/actions.d/actions_unbound.conf +++ b/src/opnsense/service/conf/actions.d/actions_unbound.conf @@ -109,7 +109,7 @@ message:Updating Unbound DNSBLs description:Update Unbound DNSBLs [status] -command:pgrep -q -nF /var/run/unbound.pid && echo "unbound is running" || echo "unbound is not running" ;exit 0 +command:/usr/local/sbin/pluginctl -s unbound status parameters: type:script_output -message:request Unbound status +message:Request Unbound status