An RNAi screen of 17 worm candidate genes revealed that knockdown of the transcription factor nhr-49, a master regulator of fat metabolism, shortens worm lifespan upon infection with E. faecalis (and other potentially pathogenic bacteria) compared to Escherichia coli.