Skip to content
Open
Show file tree
Hide file tree
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 @@ -152,7 +152,7 @@ public static void main(String[] original_args) throws InterruptedException {
ex.printStackTrace();
System.out.println("\n>>>> Please check available arguments of alarm-config-logger as follows:");
help();
return;
System.exit(-1);
}

logger.info("Alarm Logging Service (PID " + ProcessHandle.current().pid() + ")");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private AggregateTopics(String[] args)
} catch (IOException ex)
{
logger.log(Level.WARNING, "Reading input from stdin failed.", ex);
System.exit(-1);
}

// Exit the program. The shutdown hook will clean up the stream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ private AlarmServerMain(final String server, final String config, final boolean
}
} catch (final Throwable ex) {
logger.log(Level.SEVERE, "Alarm Server main loop error", ex);
System.exit(-1);
}

logger.info("Done.");
Expand Down Expand Up @@ -613,7 +614,7 @@ public static void main(final String[] original_args) throws Exception {
help();
System.out.println();
ex.printStackTrace();
return;
System.exit(-1);
}

logger.info("Alarm Server (PID " + ProcessHandle.current().pid() + ")");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ else if (cmd.equals("-steal_channels"))
catch (Exception ex)
{
logger.log(Level.SEVERE, "Cannot start", ex);
run = false;
System.exit(-1);
}
httpd.shutdown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ else if (cmd.equals("-noshell"))
help();
System.out.println();
ex.printStackTrace();
return;
System.exit(-1);
}

logger.info("Scan Server (PID " + ProcessHandle.current().pid() + ")");
Expand Down Expand Up @@ -283,6 +283,7 @@ else if (cmd.equals("-noshell"))
catch (Exception ex)
{
logger.log(Level.SEVERE, "Cannot start", ex);
System.exit(-1);
}
httpd.shutdown();

Expand Down
Loading