Two reasons for pilot lights going out are.
1.wind blowing down the flue and extinguishing pilot.
2.Thermocouple faulty ( this is a small copper coil that acts as a safety device).
Sounds like an old boiler,pilot lights were last fitted on new boilers about 25 years ago,all electronic spark now.
Glen
October 2009