Section 217(2)(b) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(b)In the event of the absence or sickness of the Flag or other Officer in command of an area, command shall devolve upon the next senior executive officer in the port where he is stationed (not the area).