Questions tagged [apache-commons-daemon]

an alternative invocation mechanism for unix-daemon-like java code.

62 questions
0
votes
1 answer

Implementing JSVC directly without apache-commons-daemon jar

According to the apache commons documentation (https://commons.apache.org/proper/commons-daemon/jsvc.html), I should be able to run my application as a daemon directly using jsvc without implementing the Daemon class: Directly Write a Class…
brercia
  • 171
  • 1
  • 6
0
votes
1 answer

Spring Boot Gradle Plugin 2.x how to use custom launcher layout factory

In my project I'm using activeMQ artemis and Spring Boot. The application should be executed as an Apache Commons Daemon service. I'd like to use my custom launcher in this project. The project has the following Gradle configuration: buildscript { …
l_mcqueen
  • 55
  • 6
0
votes
0 answers

There are some problems in Akka-http for java on Apache daemon

I have some problems. I tried to introduce akka-http. But I never ever develop by scala, so I used akka-http for java. As I finished programming, I wanted to run akka-http app on Apache Daemon for product. I tried to run on the app on linux, and…
Lee
  • 11
  • 1
0
votes
0 answers

Orchestrating graceful shutdown between halt, systemd and Commons Daemon

Please note: Commons Daemon hasn't had a release since 2013. So, if there is a more modern alternative for that (that's more compatible with systemd), then I'm all ears and open to any ideas! I'm trying to get my Java 8 app deployed and running as…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
1 answer

jsvc & Gradle - no console output, Gradle daemon crashes

I'm trying to test my Java app with IntelliJ IDEA on my local machine (it is intended to be used as a daemon, therefore the use of jsvc). For testing purposes I want both stdout and stderr to be output to console. According to the jsvc help site…
Makk0
  • 115
  • 2
  • 8
0
votes
0 answers

Remove stopped windows service from task manager

Iam running a user-created windows service and it works fine. It also shows up on the task manager but when i stop this service it still continues to show in the task manager. My question-Is it possible that when the service is stopped from services…
0
votes
1 answer

Quartz Scheduler With Apache.Commons.Daemon

I created a java application that uses Quartz Scheduler. I am trying to wrap it in a Windows Service using Apache.Commons.Daemon. The Daemon requires a start and stop method. The start method should not complete until the stop method is called. If…
0
votes
1 answer

karaf (4.0.8) with commons-daemon

We are using Karaf(4.0.8) for first time , we are almost completed all the stuff but stuck at service mode. We dont want to use service wrapper (which is tanuki license ). We want to use Commons-daemon. I am trying to run Karaf with commons-dameon.…
Slok
  • 576
  • 1
  • 12
  • 27
0
votes
1 answer

NSIS Exec command with very long parameter list being cut off by the next line

In my NSIS script, I have the following lines (Didn't turn the 1st line into a code block because it was too long and looked bad as 1 line): Exec '"$BINDIR\SubscriberACD.exe" //IS//SubscriberACD --Install="$BINDIR\SubscriberACD.exe"…
SpartaSixZero
  • 2,183
  • 5
  • 27
  • 46
0
votes
0 answers

Apache Commons Daemon service breaks JRE (and other strange things)

We have developed a jar that gets wrapped as a Windows service using Procrun, the Apache Commons Daemon component for windows services. Everything works well on my own computer and on a few other development machines, but when we installed it in a…
Eduardo Z.
  • 633
  • 3
  • 10
  • 32
0
votes
2 answers

The system cannot find the file specified while starting a windows service from a Java App using Apache Commons Daemon

I have the following file structure from Eclipse for my Java app which I turned into a windows service using Apache Commons Daemon. SubscriberACD /Maven Dependencies /src/main/java /org.SubscriberACD /Subscriber.java …
SpartaSixZero
  • 2,183
  • 5
  • 27
  • 46
0
votes
1 answer

java.lang.ClassNotFoundException: org.zeromq.ZContext when trying to start windows service

I have a basic Maven java app that I created and it depends on JeroMQ which is a full Java implemenetation of ZeroMQ. Since I also need to wrap this java app as a windows service, I chose to use Apache Commons Daemon and specifically, followed this…
SpartaSixZero
  • 2,183
  • 5
  • 27
  • 46
0
votes
0 answers

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

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…
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
0
votes
1 answer

How would you use Apache Daemon to run a Java application (in Windows )?

I downloaded Apache Daemon , but I'm having some problems with running it. In the command line I'm trying to extract the JAR files (file dir. shown below) : I am doing so , by using this command (in CMD) : jar -xf commons-daemon-1.0.15.jar But…
Caffeinated
  • 11,982
  • 40
  • 122
  • 216
0
votes
1 answer

How to implement log file rotation in Apache Commons Daemon?

Standard Unix daemons support the signal HUP to rotate log files. When ever a daemon receives the signal it closes all log files and reopens them. I have a daemon process in Java using Apache Commons Daemon. The daemon implementation supports three…
ceving
  • 21,900
  • 13
  • 104
  • 178