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>2015-05-25 18:45:41 +0300
committermboelen <michael@cisofy.com>2015-05-25 18:45:41 +0300
commit7854eeae20cecc13b3b5c4e2dfdb11cdeea63034 (patch)
treea372f2ad9f1d9ca284be765afd823e1e758c8ff5 /include/tests_time
parent1c07e6fa2c92b8e75e4194704360b4d1eba11a4d (diff)
Chronyd support, finishing test
Diffstat (limited to 'include/tests_time')
-rw-r--r--include/tests_time11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/tests_time b/include/tests_time
index 8937219d..8d425fa3 100644
--- a/include/tests_time
+++ b/include/tests_time
@@ -52,10 +52,11 @@
FOUND=0
if [ -f /etc/chrony.conf ]; then
- IsRunning chronyd
- if [ ${RUNNING} -eq 1 ]; then
- FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="chronyd"
- Display --indent 2 --text "- NTP daemon found: chronyd" --result FOUND --color GREEN
+ IsRunning chronyd
+ if [ ${RUNNING} -eq 1 ]; then
+ FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="chronyd"
+ Display --indent 2 --text "- NTP daemon found: chronyd" --result FOUND --color GREEN
+ fi
fi
# Check time daemon (eg DragonFly BSD)
@@ -113,7 +114,7 @@
fi
else
logtext "Result: crontab file ${I} not found"
- fi
+ fi
done
##########################