As KWTMECH says, if the oil pressure switch is not working, the truck will do exactly as you describe. The computer will shut off the fuel pump if it does not see the oil pressure switch within 30 seconds or so. The switch is in the side of the block above the oil filter.