daemon: extract reader start-up to a function