mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 16:54:26 +02:00
Generic code enhancements
This commit is contained in:
parent
6b7362cefd
commit
bba133afbb
@ -62,8 +62,9 @@
|
|||||||
Register --test-no PRNT-2304 --weight L --network NO --description "Check cupsd status"
|
Register --test-no PRNT-2304 --weight L --network NO --description "Check cupsd status"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
logtext "Test: Checking cupsd status"
|
logtext "Test: Checking cupsd status"
|
||||||
FIND=`${PSBINARY} ax | grep "cupsd" | grep -v "grep" | grep -v apcupsd`
|
#FIND=`${PSBINARY} ax | grep "cupsd" | grep -v "grep" | grep -v apcupsd`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
IsRunning cupsd
|
||||||
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
Display --indent 2 --text "- Checking cups daemon" --result RUNNING --color GREEN
|
Display --indent 2 --text "- Checking cups daemon" --result RUNNING --color GREEN
|
||||||
logtext "Result: cups daemon running"
|
logtext "Result: cups daemon running"
|
||||||
CUPSD_RUNNING=1; PRINTING_DAEMON="cups"
|
CUPSD_RUNNING=1; PRINTING_DAEMON="cups"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user