Fixed some issues with the daemons being run on startup.