You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_systemd/20-systemctl_list-service-s...

19 lines
606 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/bin/bash -x
# Author: Rene Diepstraten <rene@renediepstraten.nl>
# 28.03.2024 Pavel Negrobov <pnegrobov@msvsphere-os.ru> -- skip для MSVSphere ОС
# https://inferitos.asproagile.ru/_module/agile/view/issue/1285
t_Log "Running $0 - skip for MSVSphere. Please see https://inferitos.asproagile.ru/_module/agile/view/issue/1285"
exit 0
[ ${centos_ver} -lt 7 ] && exit
t_Log "Running $0 - checking if systemctl can check a service status"
if [ "$CONTAINERTEST" -eq "1" ]; then
t_Log "Running in container -> SKIP"
exit 0
fi
systemctl is-active auditd.service > /dev/null
t_CheckExitStatus $?