From f8697db25b24f8d767f1c6e6678d868b6dd369cd Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 19 Sep 2018 13:19:57 +0200 Subject: [PATCH] [TIME-3104] added more logging --- include/tests_time | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/tests_time b/include/tests_time index 590b2552..51bc5b4f 100644 --- a/include/tests_time +++ b/include/tests_time @@ -102,14 +102,19 @@ FIND=$(${TIMEDATECTL} status | ${EGREPBINARY} "(NTP|System clock) synchronized: yes") if [ ! -z "${FIND}" ]; then # Check for systemd-timesyncd - if [ -f /etc/systemd/timesyncd.conf ]; then + if [ -f ${ROOTDIR}etc/systemd/timesyncd.conf ]; then + LogText "Result: found ${ROOTDIR}etc/systemd/timesyncd.conf" FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="systemd-timesyncd" Display --indent 2 --text "- NTP daemon found: systemd (timesyncd)" --result "${STATUS_FOUND}" --color GREEN SYSTEMD_NTP_ENABLED=1 + else + LogText "Result: ${ROOTDIR}etc/systemd/timesyncd.conf does not exist" fi else LogText "Result: time sychronization not performed according timedatectl command" fi + else + LogText "Result: timedatectl command not available on this system" fi # Check crontab for OpenBSD/FreeBSD