mirror of https://github.com/CISOfy/lynis.git
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"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: checking nscd status"
|
||||
FIND=`${PSBINARY} ax | grep "nscd" | grep -v "grep"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
IsRunning nscd
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
logtext "Result: nscd is running"
|
||||
Display --indent 2 --text "- Checking nscd status" --result RUNNING --color GREEN
|
||||
else
|
||||
|
@ -243,8 +243,8 @@
|
|||
Register --test-no NAME-4202 --weight L --network NO --description "Check BIND status"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Checking for running BIND instance"
|
||||
FIND=`${PSBINARY} ax | grep "/named" | grep -v "grep"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
IsRunning named
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
logtext "Result: found BIND process"
|
||||
Display --indent 2 --text "- Checking BIND status" --result "FOUND" --color GREEN
|
||||
BIND_RUNNING=1
|
||||
|
@ -357,8 +357,8 @@
|
|||
Register --test-no NAME-4230 --weight L --network NO --description "Check PowerDNS status"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Checking for running PowerDNS instance"
|
||||
FIND=`${PSBINARY} ax | grep "/pdns_server" | grep -v "grep"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
IsRunning pdns_server
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
logtext "Result: found PowerDNS process"
|
||||
Display --indent 2 --text "- Checking PowerDNS status" --result "RUNNING" --color GREEN
|
||||
POWERDNS_RUNNING=1
|
||||
|
@ -455,8 +455,8 @@
|
|||
Register --test-no NAME-4304 --weight L --network NO --description "Check NIS ypbind status"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Checking status of ypbind daemon"
|
||||
FIND=`${PSBINARY} ax | grep "ypbind" | grep -v "grep"`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
IsRunning ypbind
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
logtext "Result: ypbind is running"
|
||||
Display --indent 2 --text "- Checking ypbind status" --result "FOUND" --color GREEN
|
||||
YPBIND_RUNNING=1
|
||||
|
|
Loading…
Reference in New Issue