Added license and made the daemon persistent