take thrift server as a daemon