public static boolean isSyslogNgRestarted(String compId,String body){
  if (compId.equalsIgnoreCase(SYSLOG_NG_COMPONENT_NAME)) {
    final Matcher sysLogNgMatcher=SYSLOG_NG_STARTING_PATTERN.matcher(body);
    if (sysLogNgMatcher.matches()) {
      return true;
    }
  }
  return false;
}

public static boolean isSyslogNgRestarted ( String compId , String body ) { if ( compId . equalsIgnoreCase ( SYSLOG_NG_COMPONENT_NAME ) ) { final Matcher sysLogNgMatcher = SYSLOG_NG_STARTING_PATTERN . matcher ( body ) ; if ( sysLogNgMatcher . matches ( ) ) { return true ; } } return false ; }
checks to see if syslog - ng has been restarted by comparing against the component name and the matching against the syslog_ng_starting_pattern regex .
