DANVILLE — The appointment of a new town moderator was accompanied by an hourlong debate Monday night over the circumstances surrounding his predecessor’s abrupt resignation last week.

Longtime resident Charles Underhill was appointed interim town moderator to oversee the upcoming presidential primary. A permanent moderator will be elected at town meeting in March.