Dashiell Hammett was a Pinkerton before getting Spanish Flu and becoming ill and switching to writing fiction to make money.