Create PID file for server