Please answer the following question: Facts: - death date: 16 august 1865 - commands: 92nd infantry -lrb- 1821 -- 1829 -rrb- 83rd foot -lrb- 1848 foot -- 1865 -rrb- -lrb- 1820 -- 1821 -rrb- 90th light - relations: lieutenant-general richard stovin -lrb- brother -rrb- - awards: knight knight commander of the order of st michael and st grand george knight commander of the order of the bath gold cross cross -lrb- two clasps -rrb- of the order of the bath - birth date: 1783 - serviceyears: 1800 -- 1865 - name: sir frederick stovin - branch: british army - birth place: whitgift - rank: general Based on these bullet points, write a short biography describing the life of frederick stovin .
A:
general sir frederick stovin gcb , kcmg -lrb- 1783 -- 16 august 1865 -rrb- was a british army officer who served throughout the napoleonic wars and the war of 1812 .after the end of the wars , he commanded colonial garrisons and served in administrative roles in ireland , before retiring with the rank of colonel to take up a position at court as a groom in waiting under queen victoria .in retirement , he continued to rise through the ranks of general officers by seniority , dying a full general .he originally joined the army as an ensign in the 52nd foot in 1800 , and saw active service the same year in spain .he later acquired a captaincy in the 28th foot in 1803 ; he saw service in germany and at the battle of copenhagen with the 28th , and then served on the staff under sir john moore until the battle of corunna .he was later an aide to general alexander mackenzie-fraser , then to general thomas picton , and a divisional adjutant through the later stages of the peninsular war .in 1814 -- 15 he served in the war of 1812 , as a staff officer with the expedition sent to new orleans , and had he not been detained by prosecuting at a court-martial , he would have served at the battle of waterloo .after the war , he commanded the 92nd gordon highlanders at jamaica -- where he scandalised his regiment by ordering them to adopt trousers instead of the kilt -- and the 90th light infantry in the ionian islands , before retiring from active duty in 1829 .he then held a number of administrative roles in ireland , including the state secretary to the lord-lieutenant and the commissioner of police in ulster , and after the accession of queen victoria in 1837 became a palace courtier .his final military role was the -lrb- ceremonial -rrb- colonelcy of the 83rd -lrb- county of dublin -rrb- regiment , which he held from 1848 until his death .