| … | |
… | |
| 212 | && ${level} != "UNASSIGNED" \ |
212 | && ${level} != "UNASSIGNED" \ |
| 213 | ]] && [[ ${level} != "${BOOTLEVEL}" \ |
213 | ]] && [[ ${level} != "${BOOTLEVEL}" \ |
| 214 | || " ${boot_crit} " != *" ${service} "* ]]; then |
214 | || " ${boot_crit} " != *" ${service} "* ]]; then |
| 215 | print_msg "${service}" "${BAD}" 'broken ' |
215 | print_msg "${service}" "${BAD}" 'broken ' |
| 216 | broken="${broken} ${service}" |
216 | broken="${broken} ${service}" |
|
|
217 | elif [[ -n ${stopping} && $(in_list "${stopping}" "${service}") -eq 1 ]] ; then |
|
|
218 | print_msg "${service}" "${BAD}" 'stopping' |
|
|
219 | elif [[ -n ${starting} && $(in_list "${starting}" "${service}") -eq 1 ]] ; then |
|
|
220 | print_msg "${service}" "${GOOD}" 'starting' |
| 217 | elif [[ -n ${inactive} && $(in_list "${inactive}" "${service}") -eq 1 ]] ; then |
221 | elif [[ -n ${inactive} && $(in_list "${inactive}" "${service}") -eq 1 ]] ; then |
| 218 | print_msg "${service}" "${WARN}" 'inactive' |
222 | print_msg "${service}" "${WARN}" 'inactive' |
| 219 | elif [[ $(in_list "${started}" "${service}") -eq 1 ]] ; then |
223 | elif [[ $(in_list "${started}" "${service}") -eq 1 ]] ; then |
| 220 | print_msg "${service}" "${GOOD}" 'started ' |
224 | print_msg "${service}" "${GOOD}" 'started ' |
| 221 | elif [[ -n ${starting} && $(in_list "${starting}" "${service}") -eq 1 ]] ; then |
|
|
| 222 | print_msg "${service}" "${GOOD}" 'starting' |
|
|
| 223 | elif [[ -n ${stopping} && $(in_list "${stopping}" "${service}") -eq 1 ]] ; then |
|
|
| 224 | print_msg "${service}" "${BAD}" 'stopping' |
|
|
| 225 | else |
225 | else |
| 226 | print_msg "${service}" "${BAD}" 'stopped ' |
226 | print_msg "${service}" "${BAD}" 'stopped ' |
| 227 | fi |
227 | fi |
| 228 | done |
228 | done |
| 229 | let "arridx += 1" |
229 | let "arridx += 1" |