An officer, midshipman, or cadet of the naval service who is assigned to shore patrol duty away from his vessel or other duty station may be paid his actual services.