From f9570a82ccb93427783aa6060ebc2354b757f60c Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Thu, 27 Oct 2016 00:58:24 -0700 Subject: [PATCH] Remove glitchy daemon detection. --- advanced/Scripts/piholeDebug.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index 07557891..b9216191 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -211,19 +211,15 @@ daemon_check() { local found_daemon=false local lsof_value - if [[ ${IPV6_ENABLED} ]]; then lsof_value=$(lsof -i 6:${2} -FcL | tr '\n' ' ') \ - && (log_echo "Port ${2} is in use on IPv6" && (lsof_parse "${lsof_value}" "${1}" && found_daemon=true)) \ + && (log_echo "Port ${2} is in use on IPv6" && lsof_parse "${lsof_value}" "${1}") \ || (log_echo "Port ${2} is not in use on IPv6.") fi lsof_value=$(lsof -i 4:${2} -FcL | tr '\n' ' ') \ - && (log_echo "Port ${2} is in use on IPv4" && (lsof_parse "${lsof_value}" "${1}" && found_daemon=true)) \ + && (log_echo "Port ${2} is in use on IPv4" && lsof_parse "${lsof_value}" "${1}") \ || (log_echo "Port ${2} is not in use on IPv4.") - if [[ "${found_daemon}" == false ]]; then - log_echo "Missing required daemon ${1}, please check configuration." - fi } testResolver() {