I know how to get pid when start it.