Fixed startup for daemon.