Resistive Plasma Rotation and Shock Formation in Toroidal Geometry