[Proxy] Exit if proxy service fails to start
@@ -192,7 +192,12 @@ public class ProxyServiceStarter {
public static void main(String[] args) throws Exception {
ProxyServiceStarter serviceStarter = new ProxyServiceStarter(args);
+ try {
serviceStarter.start();
+ } catch (Throwable t) {
+ log.error("Failed to start proxy.", t);
+ Runtime.getRuntime().halt(1);
+ }
}
public void start() throws Exception {
