Getting loging and daemonizing working.