Add systemctl status --full --no-pager pihole-FTL.service to the debug log

Signed-off-by: Christian König <ckoenig@posteo.de>
pull/3859/head
Christian König 4 years ago
parent c4c8e1e5e1
commit 50316ee617

@ -946,6 +946,16 @@ process_status(){
done
}
pihole-FTL_full_status(){
# if using systemd print the full status of pihole-FTL
echo_current_diagnostic "Pi-hole-FTL full status"
local FTL_status
if command -v systemctl &> /dev/null; then
FTL_status=$(systemctl status --full --no-pager pihole-FTL.service)
log_write " ${FTL_status}"
fi
}
make_array_from_file() {
local filename="${1}"
# The second argument can put a limit on how many line should be read from the file
@ -1379,6 +1389,7 @@ check_networking
check_name_resolution
check_dhcp_servers
process_status
pihole-FTL_full_status
parse_setup_vars
check_x_headers
analyze_gravity_list

Loading…
Cancel
Save