Brake pedal goes to the floor only when the engine is running

They are supposed to cause a little drag on the rear wheels, just enough to feel. You adjust them to a slight drag, make a couple of hard brake applications with the engine running to center the shoes. Check for drag again, if there is none, adjust again.