mirror of https://github.com/CISOfy/lynis.git
Reversed if/then to show correct status of minilogd
This commit is contained in:
parent
f118b19228
commit
4b77e27495
|
@ -207,13 +207,13 @@
|
|||
LogText "Result: Checking for unkilled minilogd instances"
|
||||
# Search for minilogd. It shouldn't be running normally, if another syslog daemon is started
|
||||
if IsRunning "minilogd"; then
|
||||
Display --indent 4 --text "- Checking minilogd instances" --result "${STATUS_NOT_FOUND}" --color WHITE
|
||||
LogText "Result: No minilogd is running"
|
||||
else
|
||||
Display --indent 4 --text "- Checking minilogd instances" --result "${STATUS_WARNING}" --color RED
|
||||
LogText "Result: minilogd found in process list"
|
||||
# minilogd daemon seems to be running
|
||||
ReportWarning ${TEST_NO} "minilogd is running, which should normally not be running"
|
||||
else
|
||||
Display --indent 4 --text "- Checking minilogd instances" --result "${STATUS_NOT_FOUND}" --color WHITE
|
||||
LogText "Result: No minilogd is running"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue