mirror of https://github.com/CISOfy/lynis.git
[SCHD-7702] Added test to check cron daemon status
This commit is contained in:
parent
ea9c40a36c
commit
705e2444ee
|
@ -27,6 +27,23 @@
|
|||
#################################################################################
|
||||
#
|
||||
ATD_RUNNING=0
|
||||
CROND_RUNNING=0
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
# Test : SCHD-7702
|
||||
# Description : Check cron daemon
|
||||
Register --test-no SCHD-7702 --weight L --network NO --description "Check status of cron daemon"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
FIND=`ps aux | egrep "( cron$|/cron(d)? )"`
|
||||
if [ "${FIND}" = "" ]; then
|
||||
LogText "Result: no cron daemon found"
|
||||
else
|
||||
LogText "Result: cron daemon running"
|
||||
CROND_RUNNING=1
|
||||
report "crond_running=1"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue