Such appointment shall be in writing, signed by the sheriff.