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