mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
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"
|
LogText "Result: Checking for unkilled minilogd instances"
|
||||||
# Search for minilogd. It shouldn't be running normally, if another syslog daemon is started
|
# Search for minilogd. It shouldn't be running normally, if another syslog daemon is started
|
||||||
if IsRunning "minilogd"; then
|
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
|
Display --indent 4 --text "- Checking minilogd instances" --result "${STATUS_WARNING}" --color RED
|
||||||
LogText "Result: minilogd found in process list"
|
LogText "Result: minilogd found in process list"
|
||||||
# minilogd daemon seems to be running
|
# minilogd daemon seems to be running
|
||||||
ReportWarning ${TEST_NO} "minilogd is running, which should normally not 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
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user