mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Generic code enhancements
This commit is contained in:
parent
a145b0091a
commit
94387348f0
@ -225,8 +225,8 @@
|
|||||||
Register --test-no NAME-4032 --weight L --network NO --description "Check nscd status"
|
Register --test-no NAME-4032 --weight L --network NO --description "Check nscd status"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: checking nscd status"
|
logtext "Test: checking nscd status"
|
||||||
FIND=`${PSBINARY} ax | grep "nscd" | grep -v "grep"`
|
IsRunning nscd
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
logtext "Result: nscd is running"
|
logtext "Result: nscd is running"
|
||||||
Display --indent 2 --text "- Checking nscd status" --result RUNNING --color GREEN
|
Display --indent 2 --text "- Checking nscd status" --result RUNNING --color GREEN
|
||||||
else
|
else
|
||||||
@ -243,8 +243,8 @@
|
|||||||
Register --test-no NAME-4202 --weight L --network NO --description "Check BIND status"
|
Register --test-no NAME-4202 --weight L --network NO --description "Check BIND status"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: Checking for running BIND instance"
|
logtext "Test: Checking for running BIND instance"
|
||||||
FIND=`${PSBINARY} ax | grep "/named" | grep -v "grep"`
|
IsRunning named
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
logtext "Result: found BIND process"
|
logtext "Result: found BIND process"
|
||||||
Display --indent 2 --text "- Checking BIND status" --result "FOUND" --color GREEN
|
Display --indent 2 --text "- Checking BIND status" --result "FOUND" --color GREEN
|
||||||
BIND_RUNNING=1
|
BIND_RUNNING=1
|
||||||
@ -357,8 +357,8 @@
|
|||||||
Register --test-no NAME-4230 --weight L --network NO --description "Check PowerDNS status"
|
Register --test-no NAME-4230 --weight L --network NO --description "Check PowerDNS status"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: Checking for running PowerDNS instance"
|
logtext "Test: Checking for running PowerDNS instance"
|
||||||
FIND=`${PSBINARY} ax | grep "/pdns_server" | grep -v "grep"`
|
IsRunning pdns_server
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
logtext "Result: found PowerDNS process"
|
logtext "Result: found PowerDNS process"
|
||||||
Display --indent 2 --text "- Checking PowerDNS status" --result "RUNNING" --color GREEN
|
Display --indent 2 --text "- Checking PowerDNS status" --result "RUNNING" --color GREEN
|
||||||
POWERDNS_RUNNING=1
|
POWERDNS_RUNNING=1
|
||||||
@ -455,8 +455,8 @@
|
|||||||
Register --test-no NAME-4304 --weight L --network NO --description "Check NIS ypbind status"
|
Register --test-no NAME-4304 --weight L --network NO --description "Check NIS ypbind status"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: Checking status of ypbind daemon"
|
logtext "Test: Checking status of ypbind daemon"
|
||||||
FIND=`${PSBINARY} ax | grep "ypbind" | grep -v "grep"`
|
IsRunning ypbind
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
logtext "Result: ypbind is running"
|
logtext "Result: ypbind is running"
|
||||||
Display --indent 2 --text "- Checking ypbind status" --result "FOUND" --color GREEN
|
Display --indent 2 --text "- Checking ypbind status" --result "FOUND" --color GREEN
|
||||||
YPBIND_RUNNING=1
|
YPBIND_RUNNING=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user