Questions tagged [procrun]

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service.

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service.

The service can be set to automatically start when the machine boots and will continue to run with no user logged onto the machine.

Procrun comprises 2 applications:

  1. Prunmgr is a GUI application for monitoring and configuring procrun services.
  2. Prunsrv is a service application for running applications as services. It can convert any application (not just Java applications) to run as a service.

For more information, visit Apache Commons site here Daemon:Procrun

97 questions
18
votes
5 answers

Spring boot JAR as windows service

I am trying to wrap a spring boot "uber JAR" with procrun. Running the following works as expected: java -jar my.jar I need my spring boot jar to automatically start on windows boot. The nicest solution for this would be to run the jar as a…
roblovelock
  • 1,761
  • 1
  • 18
  • 39
16
votes
9 answers

prunsrv.exe Service not starting up

I am trying to install and start a service with prunsrv.exe for an application I am able to install the service alright but the service wont start up and gives me an error Also following is the configuration that is used to install the service…
frewper
  • 1,309
  • 6
  • 17
  • 41
13
votes
8 answers

Apache commons daemon "Failed creating Java" error

I'm trying to start a Windows service using the Apache commons daemon. It works on Windows XP, but I'm trying to run it on Windows 7 x64. It fails to start and I get the following error in the logs: [2010-12-13 17:21:19] [info] Commons Daemon…
anom217
  • 183
  • 1
  • 1
  • 6
13
votes
4 answers

Windows service installed with Procrun works in //TS mode, but doesn't start as a Windows service saying it "started and then stopped"

I installed a standard executable jar file as a Windows service by running the following command: > prunsrv.exe //IS//"My Service" --Install="C:\path-to-prunsrv.exe" --Jvm=auto \ --Startup=auto --StartMode=jvm…
11101101b
  • 7,351
  • 2
  • 37
  • 52
6
votes
1 answer

JVisualVM is unable to connect to process using the --openpid argument

I have an application that is running as a win-service (using Apache-Procrun). I want to monitor that application with JVisualVM. I've used the commandline argument --openpid without success, ironically the old JConsole managed to connect to…
Chriss
  • 4,148
  • 6
  • 30
  • 60
5
votes
2 answers

windows service access to network before logon

I wrote a windows service in Java, and it starts automatically (before user login to Windows). My problem is that it looks like the service has no access to the network before logon. In the logs I see that before logon, I get:…
Danielle
  • 792
  • 7
  • 12
5
votes
1 answer

Query regarding Zookeeper Windows API start/stop, using Zk as a windows service(using prunsrv)

I am using zookeeper in my product(3.3.3). While working with zookeeper on Windows, I am creating a service(using prunsrv) , I have few queries and issues. Listed them all, Issues: 1) zkServer.cmd didn’t start on Win server 2008 machine & Win 7…
nandini
  • 338
  • 6
  • 20
5
votes
0 answers

Procrun fails to restart Java service after crash in JNI component

I'm experiencing an issue with a java application I'm trying to run as a Windows service via Apache procrun. The application is made up of 2 components, a java component where the main part of the application resides. And a C component which enables…
4
votes
1 answer

Apache common daemons - procrun. Stop service hanging

Hi I installed my java service to run through apache common daemons prunsrv. I have problems stopping it. Sometimes when restarting the service from the windowse services console it hangs; the strange thing is that my service is correctly stopped as…
user2820147
  • 43
  • 1
  • 5
4
votes
1 answer

Does anybody have a complete wix configuration example for installing a procrun based Java service?

I have been working on a project where I need to install a Java service running as a spring boot application from a Wix installer for Windows. It should autodetect if there is already a JRE instance installed globally on the system, and if so, use…
3
votes
1 answer

Stopping threads in a multi threaded application

I have created a service using procrun which launches certain jars through reflection. When the service is started it starts a thread and rest of the execution happens in that thread. Then each of the plugin loads its own threads and does the…
AnOldSoul
  • 3,565
  • 7
  • 38
  • 90
3
votes
3 answers

start process from java when java run as service

I have a java process running as windows server using prcorun (http://commons.apache.org/proper/commons-daemon/); unfortunatly I have to launch an external legacy command written in C/C++. both Process myProcess =…
venergiac
  • 6,053
  • 1
  • 38
  • 65
3
votes
3 answers

How to disabled logging stdout for apache commons daemon (Procrun)?

I'm using apache commons daemon tool Procrun to install a java command line tool as a windows service. The java tool displays lots of content on the console during running. Any sysout will automatically be logged by the daemon tool into a logfile.…
membersound
  • 66,525
  • 139
  • 452
  • 886
3
votes
1 answer

Zcontext.destroy() hangs instead of terminating all open sockets

I have a server written in Java - (that uses ZeroMQ in REQ-REP and PUB-SUB patterns.) I am wrapping it as a Windows services using the Apache Commons Daemon (prunsrv/procrun) Sometimes the call to ZContext.destroy hangs. I have managed to get stack…
saraf
  • 480
  • 5
  • 19
3
votes
1 answer

Apache daemons procrun prunsrv Windows exe mode not working

For a few years we've been using Procrun to turn Java apps into Services (and without problems). We also have some native Windows Executables running as Services. Until now, we used Windows Management Instrumentation (WMI) to define these, but I'm…
1
2 3 4 5 6 7