There's a sensor on the back of the a/c compressor that's designed to shut-off the compressor in the event of belt slippage/breakage.
Cycling the ignition reactivates the unit as you've experienced. There's been alot of talk about this here. Use the SEARCH facility. It could simply be that your belt is loose, or the belt tensioner has grown weak.