add tmp dir to save process pid and sock