public boolean waitUntilStarted(int timeout){
  int cnt=0;
  while (cnt < timeout) {
    if (isStarted()) {
      log.info("Dbsvc startup OK");
      return true;
    }
    sleep(4);
    cnt++;
  }
  return false;
}

public boolean waitUntilStarted ( int timeout ) { int cnt = 0 ; while ( cnt < timeout ) { if ( isStarted ( ) ) { log . info ( "Dbsvc startup OK" ) ; return true ; } sleep ( 4 ) ; cnt ++ ; } return false ; }
wait until service started
