diff options
Diffstat (limited to 'bin/rc-status')
-rwxr-xr-x | bin/rc-status | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rc-status b/bin/rc-status index 299383c..05254fc 100755 --- a/bin/rc-status +++ b/bin/rc-status @@ -214,14 +214,14 @@ for level in ${runlevelidxs} ; do || " ${boot_crit} " != *" ${service} "* ]]; then print_msg "${service}" "${BAD}" 'broken ' broken="${broken} ${service}" + elif [[ -n ${stopping} && $(in_list "${stopping}" "${service}") -eq 1 ]] ; then + print_msg "${service}" "${BAD}" 'stopping' + elif [[ -n ${starting} && $(in_list "${starting}" "${service}") -eq 1 ]] ; then + print_msg "${service}" "${GOOD}" 'starting' elif [[ -n ${inactive} && $(in_list "${inactive}" "${service}") -eq 1 ]] ; then print_msg "${service}" "${WARN}" 'inactive' elif [[ $(in_list "${started}" "${service}") -eq 1 ]] ; then print_msg "${service}" "${GOOD}" 'started ' - elif [[ -n ${starting} && $(in_list "${starting}" "${service}") -eq 1 ]] ; then - print_msg "${service}" "${GOOD}" 'starting' - elif [[ -n ${stopping} && $(in_list "${stopping}" "${service}") -eq 1 ]] ; then - print_msg "${service}" "${BAD}" 'stopping' else print_msg "${service}" "${BAD}" 'stopped ' fi |