Hardee's Rifle and Light Infantry Tactics, by Brevet Lieutenant William J. Hardee.
Article 45. Commissioned Officer on Guard. Any commissioned officer who shall be found drunk on his guard, party, or other duty, shall be cashiered. Any non-commissioned officer or soldier so offending shall suffer such corpreal punishment as shall be inflicted by the sentence of a court-martial.
Articles of War Chapter. Article 46. Sentinel on Guard. Any sentinel who shall be found sleeping upon his post, shall leave it before he shall be regularly relieved, shall suffer death, or such other punishment as shall be inflicted by the sentence of a court-martial.
You may want to refer to AN ELEMENTARY TREATISE ON ADVANCED-GUARD, OUT-POST, AND DETACHMENT SERVICE OF TROOPS,
AND THE MANNER OF POSTING AND HANDLING THEM IN PRESENCE OF AN ENEMY. WITH A HISTORICAL SKETCH OF THE RISE AND PROGRESS OF TACTICS, &c. &c. INTENDED AS A SUPPLEMENT TO THE SYSTEM OF TACTICS ADOPTED FOR THE MILITARY SERVICE OF THE UNITED STATES, AND ESPECIALLY FOR THE USE OF OFFICERS OF MILITIA AND VOLUNTEERS, BY D. H. MAHAN. The same principles still apply.
I hope this helps.
Gerald D. Hodge, Jr.
War Between the States Historian
Historian: 39th Georgia Volunteer Infantry Regiment