diff --git a/include/tests_accounting b/include/tests_accounting index a18f3441..c5f64a73 100644 --- a/include/tests_accounting +++ b/include/tests_accounting @@ -136,8 +136,12 @@ LogText "Result: sysstat disabled via systemd" Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_DISABLED}" --color WHITE fi + # Slackware + elif [ -f "${ROOTDIR}etc/rc.d/rc.sysstat" -a -x "${ROOTDIR}etc/rc.d/rc.sysstat" ]; then + LogText "Result: sysstat enabled via /etc/rc.d/rc.sysstat" + Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_ENABLED}" --color GREEN else - LogText "Result: sysstat not found via ${ROOTDIR}etc/default/sysstat or ${ROOTDIR}etc/cron.d/sysstat or as a systemd unit" + LogText "Result: sysstat not found via ${ROOTDIR}etc/default/sysstat or ${ROOTDIR}etc/cron.d/sysstat or ${ROOTDIR}etc/rc.d/rc.sysstat or as a systemd unit" Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_NOT_FOUND}" --color YELLOW ReportSuggestion "${TEST_NO}" "Enable sysstat to collect accounting (no results)" fi