Blame tests/p_systemd/20-systemctl_list-service-status.sh

Rene Diepstraten 8c0afd
#!/bin/bash
Rene Diepstraten 8c0afd
# Author: Rene Diepstraten <rene@renediepstraten.nl>
Rene Diepstraten 8c0afd
Rene Diepstraten 8c0afd
[ ${centos_ver} -lt 7 ] && exit
Rene Diepstraten 8c0afd
t_Log "Running $0 - checking if systemctl can check a service status"
Rene Diepstraten 8c0afd
40b4c8
if [ "$CONTAINERTEST" -eq "1" ]; then
40b4c8
    t_Log "Running in container -> SKIP"
40b4c8
    exit 0
40b4c8
fi
40b4c8
Rene Diepstraten 8c0afd
systemctl is-active auditd.service > /dev/null
Rene Diepstraten 8c0afd
Rene Diepstraten 8c0afd
t_CheckExitStatus $?