Set up for daemon mode