apache-commons-daemon

Java service on Linux - How to ensure constant uptime. Deamon, Shell script or Wrapper?

旧城冷巷雨未停 提交于 2020-01-02 23:03:54
问题 I have a Java worker that are polling a external queue system for jobs, through web service calls. What is the most solid way to ensure that the worker is operating at any given time? 回答1: JVM execution is not different from any other program. So what you want to do is to put together a shell script and place it in /etc/init.d and link it appropriatelly to to /etc/rc.d. On RedHat flavors it will ensure service startup with the system. Wring the script may be tricky, but I would copy one of

Java service on Linux - How to ensure constant uptime. Deamon, Shell script or Wrapper?

白昼怎懂夜的黑 提交于 2020-01-02 23:02:57
问题 I have a Java worker that are polling a external queue system for jobs, through web service calls. What is the most solid way to ensure that the worker is operating at any given time? 回答1: JVM execution is not different from any other program. So what you want to do is to put together a shell script and place it in /etc/init.d and link it appropriatelly to to /etc/rc.d. On RedHat flavors it will ensure service startup with the system. Wring the script may be tricky, but I would copy one of

Why doesn't my service (using Apache Daemon ) work in the Services tool?

╄→гoц情女王★ 提交于 2019-12-13 06:33:59
问题 I am following this Ulrichpalha.com tutorial for Apache Daemon , however I'm not able to start the service from MS services.msc window : This is at the step Running the Sample Application , step 4. a I'm wondering if it is because my Apache Daemon isn't working right (it should look like this ). Because when I run LoggerService.exe in the command-window I am not getting the results shown on the Ulrich site (it doesn't output anything ). 来源: https://stackoverflow.com/questions/33487583/why

Java service on Linux - How to ensure constant uptime. Deamon, Shell script or Wrapper?

心已入冬 提交于 2019-12-06 15:18:57
I have a Java worker that are polling a external queue system for jobs, through web service calls. What is the most solid way to ensure that the worker is operating at any given time? JVM execution is not different from any other program. So what you want to do is to put together a shell script and place it in /etc/init.d and link it appropriatelly to to /etc/rc.d. On RedHat flavors it will ensure service startup with the system. Wring the script may be tricky, but I would copy one of existing ones and change it to call java executable with right parameters. In this script you would have to

How to schedule documents4j server standalone as windows service using procrun?

删除回忆录丶 提交于 2019-12-04 05:14:51
问题 I have been trying to schedule the documents4j as windows service using procrun for RTF to PDF conversion but it keeps throwing the following error: com.documents4j.throwables.ConversionInputException: The sent input is invalid at com.documents4j.util.Reaction$ConversionInputExceptionBuilder.make(Reaction.java:159) ~[documents4j-client-standalone-0.3-SNAPSHOT-shaded.jar:na] at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-client-standalone-0.3

How to schedule documents4j server standalone as windows service using procrun?

巧了我就是萌 提交于 2019-12-02 03:32:49
I have been trying to schedule the documents4j as windows service using procrun for RTF to PDF conversion but it keeps throwing the following error: com.documents4j.throwables.ConversionInputException: The sent input is invalid at com.documents4j.util.Reaction$ConversionInputExceptionBuilder.make(Reaction.java:159) ~[documents4j-client-standalone-0.3-SNAPSHOT-shaded.jar:na] at com.documents4j.util.Reaction$ExceptionalReaction.apply(Reaction.java:75) ~[documents4j-client-standalone-0.3-SNAPSHOT-shaded.jar:na] at com.documents4j.ws.ConverterNetworkProtocol$Status.resolve(ConverterNetworkProtocol

Howto setup a Daemon implementation as windows service

风格不统一 提交于 2019-11-30 16:08:15
I didn't find any really good example (actually I did not find a single example) on how to register a class that implements the org.apache.commons.daemon.Daemon interface as Windows service. Do I have to register this implementation using procrun? But than there doesn't seem to be a point in implementing the interface as procrun can register any program as windows service. Furthermore there seems to be a docu-bug on the procrun page ( http://commons.apache.org/proper/commons-daemon/procrun.html ): The description of the --StartMethod parameter states: Note: in jvm mode, the start method should

Howto setup a Daemon implementation as windows service

一世执手 提交于 2019-11-30 00:08:13
问题 I didn't find any really good example (actually I did not find a single example) on how to register a class that implements the org.apache.commons.daemon.Daemon interface as Windows service. Do I have to register this implementation using procrun? But than there doesn't seem to be a point in implementing the interface as procrun can register any program as windows service. Furthermore there seems to be a docu-bug on the procrun page (http://commons.apache.org/proper/commons-daemon/procrun