Commercial fuel line to commercial kitchen fryer. Pilot stays on until thermostat is turned on then the pilot goes out. Replace gas valve and thermopile generator for gas fryer.