mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
Textual changes
This commit is contained in:
parent
381fbf25d0
commit
b31a6c4659
@ -56,21 +56,21 @@
|
|||||||
FOUND=1; NTPD_RUNNING=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1
|
FOUND=1; NTPD_RUNNING=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1
|
||||||
NTP_DAEMON="ntpd"
|
NTP_DAEMON="ntpd"
|
||||||
logtext "Result: found running NTP daemon in process list"
|
logtext "Result: found running NTP daemon in process list"
|
||||||
Display --indent 4 --text "- Daemon: ntpd" --result FOUND --color GREEN
|
Display --indent 2 --text "- NTP daemon found: ntpd" --result FOUND --color GREEN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check time daemon (eg NetBSD)
|
# Check time daemon (eg NetBSD)
|
||||||
IsRunning timed
|
IsRunning timed
|
||||||
if [ ${RUNNING} -eq 1 ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="timed"
|
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="timed"
|
||||||
Display --indent 4 --text "- Daemon: timed" --result FOUND --color GREEN
|
Display --indent 2 --text "- NTP daemon found: timed" --result FOUND --color GREEN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check time daemon (eg DragonFly BSD)
|
# Check time daemon (eg DragonFly BSD)
|
||||||
IsRunning dntpd
|
IsRunning dntpd
|
||||||
if [ ${RUNNING} -eq 1 ]; then
|
if [ ${RUNNING} -eq 1 ]; then
|
||||||
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="dntpd"
|
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="dntpd"
|
||||||
Display --indent 4 --text "- Daemon dntpd" --result FOUND --color GREEN
|
Display --indent 2 --text "- NTP daemon found: dntpd" --result FOUND --color GREEN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check timedate daemon (systemd)
|
# Check timedate daemon (systemd)
|
||||||
@ -78,7 +78,7 @@
|
|||||||
FIND=`${TIMEDATECTL} status | grep "NTP enabled: yes"`
|
FIND=`${TIMEDATECTL} status | grep "NTP enabled: yes"`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="timedated"
|
FOUND=1; NTP_DAEMON_RUNNING=1; NTP_CONFIG_TYPE_DAEMON=1; NTP_DAEMON="timedated"
|
||||||
Display --indent 4 --text "- Daemon: timedated" --result "FOUND" --color GREEN
|
Display --indent 2 --text "- NTP daemon found: timedated" --result "FOUND" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user