From Melville’s Redburn: His First Voyage (ch.29) – only interesting as a personal prophecy given that several decades later Melville himself would work as a customs official for about twenty years.
During the many visits of Captain Riga to the ship, he always said something courteous to a gentlemanly, friendless custom-house officer, who staid on board of us nearly all the time we lay in the dock.
And weary days they must have been to this friendless custom-house officer; trying to kill time in the cabin with a newspaper; and rapping on the transom with his knuckles. He was kept on board to prevent smuggling; but he used to smuggle himself ashore very often, when, according to law, he should have been at his post on board ship. But no wonder; he seemed to be a man of fine feelings, altogether above his situation; a most inglorious one, indeed; worse than driving geese to water.