The goods and estate of towns and of school and village districts may be taken on execution, and set off or sold, subject to the provisions of this chapter, as in case of an execution against an individual.