system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] What happened to all the Imperial forces after the fall of the Empire?

After the battles of Endor and Jakku the Empire formally ended. Now while we know some remnants retreated and ended up forming the First Order, what happened to the rest of the Stormtroopers and Officers? 

How did the New Republic deal with the ones that surrendered? Were there prison camps? Some sort of resettlement project? Was there some form of Reconstruction Act for systems that supported Imperial rule?
gpt
Fragmentation.  Some warlords arose trying to maintain their petty fiefdoms.  Many, many defections.  The market was flooded with surplus Empire military gear as troopers and officers sought cash to melt back into society. 

Some gained employment as mercenaries or security forces in brushfire wars between ancient rivals that had been kept in check by the Republic and Empire.