run server as daemon