fix PID check for hiveserver