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_chkconfig/chkconfig_list_services.sh

18 lines
424 B

#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
# Rene Diepstraten <rene@renediepstraten.nl>
t_Log "Running $0 - check if chkconfig can list a service status"
if [ $centos_ver -ge 8 ]; then
echo "CentOS $centos_ver does not use chkconfig, skipping"
exit 0
fi
# network is used as example because it's standard with minimal install
chkconfig --list network | grep -q '3:on'
t_CheckExitStatus $?