diff --git a/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/bash/shared.sh b/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/bash/shared.sh index 92010c35f95..f7b052b3e21 100644 --- a/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/bash/shared.sh +++ b/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/bash/shared.sh @@ -4,6 +4,7 @@ LOGROTATE_CONF_FILE="/etc/logrotate.conf" {{% if 'sle' in product %}} SYSTEMCTL_EXEC='/usr/bin/systemctl' {{% else %}} +{{{ bash_package_install("crontabs") }}} CRON_DAILY_LOGROTATE_FILE="/etc/cron.daily/logrotate" {{% endif %}} diff --git a/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/oval/shared.xml b/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/oval/shared.xml index 19a4028a0ae..a13b81a329c 100644 --- a/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/oval/shared.xml +++ b/linux_os/guide/system/logging/log_rotation/ensure_logrotate_activated/oval/shared.xml @@ -11,8 +11,8 @@ test_ref="test_logrotate_conf_no_other_keyword" /> -{{% if product in ["rhcos4", "rhel9", "sle12", "sle15","ol9"] %}} - +{{% if product in ["rhcos4", "rhel9", "rhel10", "sle12", "sle15", "ol9"] %}} + {{% endif %}} @@ -54,4 +54,22 @@ 1 +{{% if product in ["rhcos4", "rhel9", "rhel10", "sle12", "sle15", "ol9"] %}} + + + + + + /etc/systemd/system/multi-user.target.wants/logrotate.timer + unit_logrotate_state_symlink + + + + symbolic link + +{{% endif %}} +