Which amp is it? To be honest, it'll probably cost more to get it serviced than to buy a new one!
The piece of advice I give everyone who's amp keeps on turning off when turned on: Unplug the speakers, and try it then...does it work then? And do you have it properly ventilated?