Top half user output updated.

This commit is contained in:
Dan Schaper 2016-10-28 03:49:03 -07:00
parent 0debbffa70
commit e3c7a1f31f
1 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ lsof_parse() {
else else
match="incorrectly." match="incorrectly."
fi fi
log_echo "by ${user} for ${process} ${match}" log_echo -l "by ${user} for ${process} ${match}"
} }
@ -237,12 +237,12 @@ daemon_check() {
if [[ ${IPV6_ENABLED} ]]; then if [[ ${IPV6_ENABLED} ]]; then
lsof_value=$(lsof -i 6:${2} -FcL | tr '\n' ' ') \ lsof_value=$(lsof -i 6:${2} -FcL | tr '\n' ' ') \
&& (log_echo "Port ${2} is in use on IPv6" && lsof_parse "${lsof_value}" "${1}") \ && (log_echo -n "IPv6 Port ${2} is in use " && lsof_parse "${lsof_value}" "${1}") \
|| (log_echo "Port ${2} is not in use on IPv6.") || (log_echo "Port ${2} is not in use on IPv6.")
fi fi
lsof_value=$(lsof -i 4:${2} -FcL | tr '\n' ' ') \ lsof_value=$(lsof -i 4:${2} -FcL | tr '\n' ' ') \
&& (log_echo "Port ${2} is in use on IPv4" && lsof_parse "${lsof_value}" "${1}") \ && (log_echo -n "IPv4 Port ${2} is in use " && lsof_parse "${lsof_value}" "${1}") \
|| (log_echo "Port ${2} is not in use on IPv4.") || (log_echo "Port ${2} is not in use on IPv4.")
} }