The peace accord will end a half-century-long civil war that has killed hundreds of thousands of people.