D'Oyly went out to Ceylon in 1801, initially as a writer in the civil service and then as President of various provincial courts. He mastered the Sinhalese language during a tenure at Matara under the tutelage of the scholarly Buddhist Monk; Karathota Dhammarama Nayake Thera,[2] and for this proficiency, he was appointed as the Government's chief translator in 1805. He became an Agent of Revenue for the District of Colombo the following year. Further promotions saw him elevated through the ranks of civil and military and he was ultimately appointed to the post of Civil Auditor-General.
"Died, at Kandy on the 25th inst at 1 O' clock AM of Remittent Fever caught on an official tour in the Seven Korles, The Honorable Sir John D'Oyly Baronet, a Member of His Majesty's Council in Ceylon and Resident and First Commissioner of Government in the Kandyan Provinces.
His remains were removed from his late residence in the Palace for Interment in the burial ground of the Garrison on the morning of the 26th Inst. at 7 O' clock the troops of the Garrison lining the road from the Palace to the burial ground resting on their arms reversed, while Minute Guns were fired by the Royal Artillery in the Castle, as the procession moved along in the following order;
The Korales and Arachchies of the Udaratte
The Band of the Ceylon Regiment,
THE BODY, borne by twelve European Soldiers of the 45th Regiment,
The Pall borne by six Field Officers and Captains of the Garrison
Chaplain The Rev, N. Garstin, Medical Attendant Surgeon Armstrong
Lt. Col. L. Greenwell, S. Sawyers, Esq, H. Wright, Esq, the Commissioners of the Board, as Chief Mourners.
Officers of the Garrison & Gentlemen of Kandy.
The Adigars of the Kandyan Province & Kandyan Chiefs
Modliars, Mohandirams of the Residency, Clerks of the Public Offices together with an immense concourse of Natives."