Compressor only runs for a few seconds

Fridge, freezer and compressor fans work. Fridge light comes on but nothing gets cold. Took the back panel off. Compressor kicks on but only for a few seconds. Eventually gets hot.

Symptoms point to a bad compressor.

Thanks richappy.
It ended up being the start relay switch for the compressor. Don’t feel bad - I got this from some of your other posts. I had beer in the fridge that couldn’t wait for a response so I took a gamble and bought a new relay. So far, it seems to be working.

Very good, your old device acted rather unusual and also I can only resond to info given. Nexp, put a 1000 joule surge protector in the wall outlet, I use a Belkin F9H120-CW on Amazon.