// file exists
if (FileUtility.isFileLocked(scProcess.getPidFileName())) {
// file is locked - SC is running
SCMgmtClient client = new SCMgmtClient(TestConstants.HOST, scProcess.getSCPort(), ConnectionType.NETTY_TCP);
client.attach(timeout);
client.killSC();
}
FileUtility.waitNotExistsOrUnlocked(scProcess.getPidFileName(), timeout);
}
testLogger.info(scProcess.getProcessName() + " stopped");
} catch (Exception e) {