Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-11-29 01:50:07 +0300
committermboelen <michael@cisofy.com>2014-11-29 01:50:07 +0300
commit87994330f1ddb703a6b5b238f11959d924a80152 (patch)
treeab4d019821da809f1790477df52c43a95d9dd711 /include/tests_logging
parentf826a4f63fea267e4ec0a5528216564338cc9976 (diff)
Added test for systemd journal daemon [LOGG-2136]
Diffstat (limited to 'include/tests_logging')
-rw-r--r--include/tests_logging17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/tests_logging b/include/tests_logging
index e227440a..93541c2c 100644
--- a/include/tests_logging
+++ b/include/tests_logging
@@ -28,7 +28,6 @@
SYSLOG_DAEMON_PRESENT=0
SYSLOG_DAEMON_RUNNING=0
SYSLOG_NG_RUNNING=0
- #YYY (extend support for systemd journal)
SYSTEMD_JOURNAL_RUNNING=0
#
#################################################################################
@@ -97,6 +96,22 @@
#
#################################################################################
#
+ # Test : LOGG-2136
+ # Description : Check for a running systemd-journal daemon
+ Register --test-no LOGG-2136 --weight L --network NO --description "Check for running systemd journal daemon"
+ if [ ${SKIPTEST} -eq 0 ]; then
+ logtext "Test: Searching for systemd journal daemon in process list"
+ IsRunning systemd-journal
+ if [ ${RUNNING} -eq 1 ]; then
+ Display --indent 4 --text "- Checking systemd journal status" --result FOUND --color GREEN
+ SYSTEMD_JOURNAL_RUNNING=1
+ else
+ Display --indent 4 --text "- Checking systemd journal status" --result "NOT FOUND" --color WHITE
+ fi
+ fi
+#
+#################################################################################
+#
# Test : LOGG-2210
# Description : Check for a running metalog daemon
Register --test-no LOGG-2210 --weight L --network NO --description "Check for running metalog daemon"