mirror of https://github.com/CISOfy/lynis.git
Added additional process check for OpenSMTPD
This commit is contained in:
parent
a70e0558c8
commit
3bc7f1fb02
|
@ -226,7 +226,7 @@
|
||||||
Register --test-no MAIL-8920 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check OpenSMTPD status"
|
Register --test-no MAIL-8920 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check OpenSMTPD status"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: check smtpd status"
|
logtext "Test: check smtpd status"
|
||||||
FIND=`${PSBINARY} ax | grep "/smtpd" | grep -v "grep"`
|
FIND=`${PSBINARY} ax | egrep "(/smtpd|smtpd: smtp)" | grep -v "grep"`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
logtext "Result: found running smtpd process"
|
logtext "Result: found running smtpd process"
|
||||||
Display --indent 2 --text "- Checking OpenSMTPD status" --result RUNNING --color GREEN
|
Display --indent 2 --text "- Checking OpenSMTPD status" --result RUNNING --color GREEN
|
||||||
|
|
Loading…
Reference in New Issue