It is different from an armistice , which is an agreement to stop hostilities , or a surrender , in which an army agrees to give up arms , or a ceasefire ( truce ) in which the parties may agree to temporarily or permanently stop fighting .
A peace treaty is different from an armistice , which is an agreement to cease hostilities , or a surrender , in which one side agrees to give up its arms .