17-12. Service of writ.

The writ of habeas corpus may be served by any qualified elector of this State thereto authorized by the court or judge allowing the same. It may be served by delivering the writ, or a copy thereof, to the person to whom it is directed; or, if such person cannot be found, by leaving it, or a copy, at the jail, or other place in which the party for whose relief it is intended is confined, with some under officer or other person of proper age; or, if none such can be found, or if the person attempting to serve the writ be refused admittance, by affixing a copy thereof in some conspicuous place on the outside, either of the dwelling house of the party to whom the writ is directed or of the place where the party is confined for whose relief it is sued out. (1868-9, c. 116, s. 32; Code, s. 1657; Rev., s. 1833; C.S., s. 2214.)