Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public void start() {
adminServer.join();
} catch (Exception e) {
LOGGER.error("Failed to start service servlet.");
this.shutdown();
System.exit(1);
}
}

Expand Down Expand Up @@ -175,12 +177,6 @@ public void shutdown() {
} catch (Exception ex) {
LOGGER.error("Error stopping admin server");
}
if (getServiceState() != State.STARTED) {
LOGGER.info(
"Service - {} is at state: {}. Expecting state: STARTED. Skipping shutdown...",
getServiceName(), getServiceState());
return;
}
LOGGER.info("Trying to shutdown service - {}...", getServiceName());
serviceLifecycle.setState(State.STOPPING);
doStop();
Expand All @@ -189,5 +185,4 @@ public void shutdown() {
PlatformMetricsRegistry.stop();
LOGGER.info("Service - {} is shutdown.", getServiceName());
}

}