Section 29. A meeting for any purpose mentioned in section twenty-seven may be called in the manner prescribed in the by-laws or votes of the corporation, or, upon written application by any five of its members, by a warrant issued by a justice of the peace, directed to one of the applicants; or such meeting may be called by a notice by the clerk, who shall warn a meeting on a like application to him; and in either case the meeting may be warned by notice served as provided in section twenty-two.