X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Ffunctions;fp=stage1%2Fbootscripts%2Ffunctions;h=4a436e0ffe435775892fbb7e18349b183751c23c;hb=3d5766f96a046d0fae736afbb02eed5470e619f6;hp=f7dfc18968c4219a29a1986a1ef5990aa2ae7553;hpb=dbeec72ba038768077dfd9848f464c5343f87f90;p=hvlinux.git diff --git a/stage1/bootscripts/functions b/stage1/bootscripts/functions index f7dfc18..4a436e0 100644 --- a/stage1/bootscripts/functions +++ b/stage1/bootscripts/functions @@ -449,7 +449,7 @@ reloadproc() if [ ${?} -ne 0 ]; then sleep 2 - if statusproc ${base} | grep -q "not running"; then + if statusproc ${base} | grep -q "stopped"; then return ${EXIT_CODE_FAILURE} fi fi @@ -510,10 +510,11 @@ statusproc_path() if [ -f ${piddir}/${base}.pid ]; then pid=$(head -1 ${piddir}/${base}.pid) if [ -n "${pid}" ]; then - echo "${base} not running but ${piddir}/${base}.pid exists" + echo "${base} stopped but ${piddir}/${base}.pid exists" return ${EXIT_CODE_FAILURE} fi - else - echo "${base} is not running" fi + + echo "${base} is stopped" + return ${EXIT_CODE_FAILURE} }