Any person subject to this code who is found under the influence of intoxicating liquor or any controlled substance listed in the Uniform Controlled Substances Law while on duty or sleeping upon his post, or who leaves his post before he is regularly relieved, shall be punished as a court-martial may direct.