[packages/unbound] rel 2; fix service unbound status

arekm arekm at pld-linux.org
Mon May 6 11:40:30 CEST 2024


commit b5531314c5f319c8360006ab6011c9ea30d47d46
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon May 6 10:36:19 2024 +0200

    rel 2; fix service unbound status

 unbound.init | 18 ++----------------
 unbound.spec |  2 +-
 2 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/unbound.spec b/unbound.spec
index 4b4be9e..7815ebf 100644
--- a/unbound.spec
+++ b/unbound.spec
@@ -13,7 +13,7 @@ Summary:	Recursive, validating DNS resolver
 Summary(pl.UTF-8):	Rekurencyjny, weryfikujący resolver DNS
 Name:		unbound
 Version:	1.19.3
-Release:	1
+Release:	2
 License:	BSD
 Group:		Applications/Network
 Source0:	https://www.unbound.net/downloads/%{name}-%{version}.tar.gz
diff --git a/unbound.init b/unbound.init
index 894b522..88eed52 100644
--- a/unbound.init
+++ b/unbound.init
@@ -70,29 +70,15 @@ case "$1" in
 	;;
   status)
 	status unbound
-	RETVAL=$?
-	if [ -f /etc/rndc.conf ]; then
-		/usr/sbin/rndc status
-		RET=$?
-		if [ $RET -ne 0 ]; then
-			RETVAL=$RET
-		fi
-	fi
 	;;
   reload|force-reload)
 	if [ -f /var/lock/subsys/unbound ]; then
-		if [ -f /etc/rndc.conf ]; then
-			run_cmd "$(nls 'Reloading %s service' 'Unbound')" /usr/sbin/rndc reload
-		else
-			msg_reloading "Unbound"
-			killproc unbound -HUP
-			RETVAL=$?
-		fi
+		msg_reloading "Unbound"
+		killproc unbound -HUP
 	else
 		msg_not_running "Unbound"
 		exit 7
 	fi
-
 	;;
   restart)
 	stop
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/unbound.git/commitdiff/b5531314c5f319c8360006ab6011c9ea30d47d46



More information about the pld-cvs-commit mailing list