anchor.diff:    {ok, #state{
       start_args = Args,
       thrift_pid = P,
  +    port = Port,
       retry_times = 0
     }}.
   
  
positive.code: -record(state, {
            start_args,   % args to start with
            thrift_pid,   % thrift client pid
            retry_times   % times to retry
         }).
                   
  -define(SERVER, ?MODULE).
  
  %%====================================================================
  %% API
  
negative.code:   ok.
  
  start_thrift_cloud_server(Args) ->  
    process_flag(trap_exit, true),
    StartCmd = build_start_command("start", Args),
    Port = open_port({spawn, StartCmd ++ " "}, ?PORT_OPTIONS),
    Port.
    % start_and_link_thrift_server(StartCmd).
    % case whereis(cloud_thrift_server) of
    %   undefined -> start_and_link_thrift_server(StartCmd);
    %   Node -> Node
  