mirror of https://github.com/CISOfy/lynis.git
Fix logging of running and enabled services
Log lines for running and enabled services were mixed up, fix. Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
This commit is contained in:
parent
e5c1f2f303
commit
80a67914c3
|
@ -579,7 +579,7 @@
|
||||||
LogText "Hint: Run systemctl --full --type=service to see all services"
|
LogText "Hint: Run systemctl --full --type=service to see all services"
|
||||||
Display --indent 2 --text "- Check running services (systemctl)" --result "${STATUS_DONE}" --color GREEN
|
Display --indent 2 --text "- Check running services (systemctl)" --result "${STATUS_DONE}" --color GREEN
|
||||||
Display --indent 8 --text "Result: found ${COUNT} running services"
|
Display --indent 8 --text "Result: found ${COUNT} running services"
|
||||||
LogText "Result: Found ${COUNT} enabled services"
|
LogText "Result: Found ${COUNT} running services"
|
||||||
|
|
||||||
# Services at boot
|
# Services at boot
|
||||||
LogText "Searching for enabled services (systemctl services only)"
|
LogText "Searching for enabled services (systemctl services only)"
|
||||||
|
@ -594,7 +594,7 @@
|
||||||
LogText "Hint: Run systemctl list-unit-files --type=service to see all services"
|
LogText "Hint: Run systemctl list-unit-files --type=service to see all services"
|
||||||
Display --indent 2 --text "- Check enabled services at boot (systemctl)" --result "${STATUS_DONE}" --color GREEN
|
Display --indent 2 --text "- Check enabled services at boot (systemctl)" --result "${STATUS_DONE}" --color GREEN
|
||||||
Display --indent 8 --text "Result: found ${COUNT} enabled services"
|
Display --indent 8 --text "Result: found ${COUNT} enabled services"
|
||||||
LogText "Result: Found ${COUNT} running services"
|
LogText "Result: Found ${COUNT} enabled services"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue