failure message in start, for any error

failure message in start, for any error
This commit is contained in:
MassimilianoPinto 2014-06-30 17:04:26 +02:00
parent aa828e8751
commit d40711f219

View File

@ -70,13 +70,13 @@ start() {
[ $CHECK_RET -eq 0 ] && echo -n $my_check && success
fi
echo
# Return rigth code
if [ $RETVAL -ne 0 ]; then
failure
RETVAL=$_RETVAL_NOT_RUNNING
fi
echo
return $RETVAL
}