Section 115(8) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(8)On the death (otherwise than in battle) of a Flag Officer whose flag is flying in one of Indian Naval Ships or naval establishments, his flag shall be half-masted and kept at half-mast until sunset on the day of the funeral when it shall be hoisted close up and then finally struck.