mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 00:04:16 +02:00
[DBS-1860] Changes to test to make it more optimized
This commit is contained in:
parent
17c435801d
commit
4e58267658
@ -145,18 +145,17 @@
|
|||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Test : DB2-001
|
# Test : DBS-1860
|
||||||
# Description : Checks if a DB2 instance is currently runnigng
|
# Description : Checks if a DB2 instance is currently runnigng
|
||||||
Register --test-no DBS-1804 --weight L --network NO --description "Checking active DB2 instances"
|
Register --test-no DBS-1860 --weight L --network NO --description "Checking active DB2 instances"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
FIND=`${PSBINARY} ax | egrep "db2sysc" | grep -v "grep"`
|
if IsRunning db2sysc; then
|
||||||
if [ "${FIND}" = "" ]; then
|
|
||||||
Display --indent 2 --text "- DB2 instance running" --result "NOT FOUND" --color WHITE
|
|
||||||
LogText "Result: No DB2 instances are running"
|
|
||||||
else
|
|
||||||
Display --indent 2 --text "- DB2 instance running" --result "FOUND" --color GREEN
|
Display --indent 2 --text "- DB2 instance running" --result "FOUND" --color GREEN
|
||||||
LogText "Result: At least one DB2 instance is running"
|
LogText "Result: At least one DB2 instance is running"
|
||||||
DB2_RUNNING=1
|
DB2_RUNNING=1
|
||||||
|
else
|
||||||
|
if [ ${DEBUG} -eq 1 ]; then Display --indent 2 --text "- DB2 instance running" --result "NOT FOUND" --color WHITE; fi
|
||||||
|
LogText "Result: No DB2 instances are running"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user