3
# A platform must be specified the only command line arg
4
# This will facilitate expansion of this tests to include
5
# the ability to test other OSes
7
RALSH_FILE=/tmp/ralsh-disabled-list-$$
8
SERVICE_FILE=/tmp/service-disabled-list-$$
10
puppet resource service | egrep -B2 "enable.*=>.*'false" | grep "service {" | awk -F"'" '{print $2}' | sort > $RALSH_FILE
12
if [ -e $SERVICE_FILE ]; then
16
SERVICEDIR='/etc/init.d'
17
for SERVICE in $( ls $SERVICEDIR | sort | egrep -v "(functions|halt|killall|single|linuxconf)" ) ; do
18
if ! chkconfig $SERVICE; then
19
echo $SERVICE >> $SERVICE_FILE
23
if diff $RALSH_FILE $SERVICE_FILE ; then
24
echo "Ralsh and system service count agree"
27
echo "Ralsh and system service count NOT in agreement"