Questions tagged [jsvc]

Jsvc is a set of libraries and applications for making Java applications run on UNIX more easily.

Jsvc is a set of libraries and applications for making Java applications run on UNIX more easily.

http://commons.apache.org/proper/commons-daemon/jsvc.html

65 questions
0
votes
1 answer

JSVC can't be build

I can't build JSVC locally on Centos 7 from tarball http://archive.apache.org/dist/commons/daemon/source/commons-daemon-1.0.15-src.tar.gz tar -zxf commons-daemon-1.0.15-src.tar.gz I have JRE installed at the location /usr/java/jdk1.8.0_351-amd64: I…
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

"Client" Java Virtual Machine with jsvc

jsvc has a -client option but it isn't available on my system: /usr/bin/jsvc -help ... ... -jvm use a specific Java Virtual Machine. Available JVMs: 'server' -client use a client Java Virtual Machine. …
Johannes Ernst
  • 3,072
  • 3
  • 42
  • 56
0
votes
0 answers

JSVC daemon stop does not wait for threads to finish

I have deployed java service application on linux using apache jsvc. It's a multithread application, however when daemon stop is initiated, it kills jvm before all threads are finished. It goes like this: WorkerLauncher which implements daemon…
CrazySabbath
  • 1,274
  • 3
  • 11
  • 33
0
votes
0 answers

Can JSVC execute a script(not java program) if the process is not running?

Is that possible for JSVC to check for processId written to file and execute a script(not java program) if the process is not running?
user3634446
  • 133
  • 1
  • 10
0
votes
1 answer

JSVC re-exec requires execution with an absolute or relative path

My Class: import org.apache.commons.daemon.Daemon; import org.apache.commons.daemon.DaemonContext; import org.apache.commons.daemon.DaemonInitException; public class Main implements Daemon { public static void main(String[] args) { …
Shredped
  • 1
  • 2
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

JAVA Win Service with procrun and CDI/WELD

I'm creating an OS background service using procrun (Apache JSVC). I want to use WELD as a container. The application by itself (gradle run) works fine. I can see desired behaviour. But when I'm trying to run it as a Windows service, I can see…
Szymon Dudziak
  • 522
  • 5
  • 23
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
1 answer

embedded: Unexpected token . React.