Log rotation extracted into its own process.