From 2577caf66df1d338c8e31e4bf1f7b044ca8a44f4 Mon Sep 17 00:00:00 2001 From: mboelen Date: Tue, 1 Sep 2015 17:40:05 +0200 Subject: [PATCH] Only show suggestion for ntpdate if ntpd isn't running --- include/tests_time | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/tests_time b/include/tests_time index 5569c804..4184f9b3 100644 --- a/include/tests_time +++ b/include/tests_time @@ -164,10 +164,12 @@ FIND=`grep 'ntpdate_enable="YES"' /etc/rc.conf` if [ ! "${FIND}" = "" ]; then logtext "Result: ntpdate is enabled in rc.conf" - # Mark system having a NTP client, but remind user to improve it FOUND=1 NTP_CONFIG_TYPE_STARTUP=1 - ReportSuggestion ${TEST_NO} "Although ntpdate is enabled in rc.conf, it is adviced to run it at least daily or use a NTP daemon" + # Only show suggestion when ntpdate is enabled, however ntpd is not running + if [ ${NTP_DAEMON_RUNNING} -eq 0 ]; then + ReportSuggestion ${TEST_NO} "Although ntpdate is enabled in rc.conf, it is adviced to run it at least daily or use a NTP daemon" + fi else logtext "Result: ntpdate is not enabled in rc.conf" fi