From afd01ece5d89dd3a1d78e3884d42ad38e129622a Mon Sep 17 00:00:00 2001 From: mboelen Date: Wed, 22 Jul 2015 17:37:11 +0200 Subject: Remove incomplete tests, code enhancements --- include/tests_scheduling | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'include/tests_scheduling') diff --git a/include/tests_scheduling b/include/tests_scheduling index 176da013..1b5e23f0 100644 --- a/include/tests_scheduling +++ b/include/tests_scheduling @@ -5,8 +5,8 @@ # Lynis # ------------------ # -# Copyright 2007-2015, Michael Boelen (michael@rootkit.nl), The Netherlands -# Web site: http://www.rootkit.nl +# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com) +# Web site: https://cisofy.com # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are # welcome to redistribute it under the terms of the GNU General Public License. @@ -139,16 +139,16 @@ # Description : Check atd status Register --test-no SCHD-7718 --weight L --network NO --description "Check at users" if [ ${SKIPTEST} -eq 0 ]; then - logtext "Test: Checking atd status" - FIND=`${PSBINARY} ax | grep "/atd" | grep -v "grep"` - if [ ! "${FIND}" = "" ]; then - logtext "Result: at daemon active" - Display --indent 2 --text "- Checking atd status" --result RUNNING --color GREEN - ATD_RUNNING=1 - else - logtext "Result: at daemon not active" - Display --indent 2 --text "- Checking atd status" --result "NOT RUNNING" --color WHITE - fi + logtext "Test: Checking atd status" + FIND=`${PSBINARY} ax | grep "/atd" | grep -v "grep"` + if [ ! "${FIND}" = "" ]; then + logtext "Result: at daemon active" + Display --indent 2 --text "- Checking atd status" --result RUNNING --color GREEN + ATD_RUNNING=1 + else + logtext "Result: at daemon not active" + Display --indent 2 --text "- Checking atd status" --result "NOT RUNNING" --color WHITE + fi fi # ################################################################################# @@ -247,4 +247,4 @@ wait_for_keypress # #================================================================================ -# Lynis - Copyright 2007-2015, Michael Boelen - www.rootkit.nl - The Netherlands +# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com -- cgit v1.2.3