diff options
author | mboelen <michael@cisofy.com> | 2016-04-26 13:58:17 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-04-26 13:58:17 +0300 |
commit | 705e2444ee06468436b44d0fe24c5d17c752d466 (patch) | |
tree | 7e43547319d254f59f14b81543a1a02fb6e6e9b5 /include/tests_scheduling | |
parent | ea9c40a36cf1bba7faa43363a9dbb0887af93bf5 (diff) |
[SCHD-7702] Added test to check cron daemon status
Diffstat (limited to 'include/tests_scheduling')
-rw-r--r-- | include/tests_scheduling | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/tests_scheduling b/include/tests_scheduling index 7b522ec6..937053fd 100644 --- a/include/tests_scheduling +++ b/include/tests_scheduling @@ -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 # ################################################################################# # |