In all cases where motions are made against officers, or officers and their sureties, for neglect of official duty under any law, five days’ notice shall be given by summons, to be served as in other cases, and this shall apply to motions against the personal representative of a deceased officer.