turn the server into a daemon