A gas pilot device that automatically shuts off gas supply to the appliance burner if the pilot flame is extinguished.