mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
add process check function
This commit is contained in:
parent
085f2c6ca0
commit
1a87d3a659
1 changed files with 11 additions and 0 deletions
|
@ -351,6 +351,16 @@ check_networking() {
|
||||||
check_required_ports
|
check_required_ports
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process_status(){
|
||||||
|
echo_current_diagnostic "Pi-hole processes"
|
||||||
|
PROCESSES=( dnsmasq lighttpd pihole-FTL )
|
||||||
|
local i
|
||||||
|
for i in "${PROCESSES[@]}"; do
|
||||||
|
local status_of_process=$(systemctl is-active "${i}")
|
||||||
|
echo -e " [i] ${i} daemon is ${status_of_process}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
parse_file() {
|
parse_file() {
|
||||||
# Set the first argument passed to tihs function as a named variable for better readability
|
# Set the first argument passed to tihs function as a named variable for better readability
|
||||||
local filename="${1}"
|
local filename="${1}"
|
||||||
|
@ -437,5 +447,6 @@ diagnose_setup_variables
|
||||||
diagnose_operating_system
|
diagnose_operating_system
|
||||||
processor_check
|
processor_check
|
||||||
check_networking
|
check_networking
|
||||||
|
process_status
|
||||||
check_critical_dependencies
|
check_critical_dependencies
|
||||||
check_dnsmasq_d
|
check_dnsmasq_d
|
||||||
|
|
Loading…
Reference in a new issue