Fixed issue with daemon not restarting when rebooted