There could be a couple of issues here....first, the thermocouple that keeps the flame lit may be breaking down, but if the boiler lights up again thats unlikely. Probably the pilot light jet needs a clean and the gas pressure checked.
John, July 2009