Skip to content

Commit

Permalink
added pidfile option
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Sep 16, 2019
1 parent 1df2d51 commit d1d9d66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion para-server/src/main/java/com/erudika/para/ParaServer.java
Expand Up @@ -437,7 +437,9 @@ public static void runAsJAR(String[] args, Class<?>... sources) {
app.setAdditionalProfiles(Config.ENVIRONMENT);
app.setWebApplicationType(WebApplicationType.SERVLET);
app.setBannerMode(Banner.Mode.OFF);
app.addListeners(new ApplicationPidFileWriter(Config.PARA + "_" + getServerPort() + ".pid"));
if (Config.getConfigBoolean("pidfile_enabled", true)) {
app.addListeners(new ApplicationPidFileWriter(Config.PARA + "_" + getServerPort() + ".pid"));
}
initialize(getCoreModules());
app.run(args);
}
Expand Down

0 comments on commit d1d9d66

Please sign in to comment.