return;
log.debug("Starting list of services for Service [" + serviceName + "], services [" + services + "]");
for (String relatedServiceName : services) {
try {
Service relatedService = new Service(relatedServiceName);
int relatedServiceStatus = relatedService.getStatus();
if (relatedServiceStatus == Service.SERVICE_STOPPED
|| relatedServiceStatus == Service.SERVICE_STOP_PENDING) {
log.debug("Starting Service [" + relatedServiceName + "]");
relatedService.start(this.timeout);
log.debug("Service started [" + relatedServiceName + "]");
relatedService.close();
}
} catch (Exception e) {
log.warn("Unable to start [" + relatedServiceName + "] from the list [" + services
+ "]. Will continue with the rest. Cause:" + e);
}