What to download?
In the directory
binaries
you will find subdirectories containing archives
corresponding to your operating system. If your machine is not in the list,
please mail us and we will try to make it available, or you can try to build it on your own.
The non-Windows files are compressed tar files. They are named commons-daemon-m.n.p-bin-os-hw.tar.gz.
For example: In the directory linux we have commons-daemon-1.0.10-bin-linux-i686.tar.gz
That is a file suitable for a Linux system running on Intel hardware.
Windows builds are provided as a zip file.
How do I get the executable?
jsvc
Do the following:
- Find the tar.gz file corresponding to your configuration.
- Download it.
- Uncompress the tar file and extract the contents (better with gnu tar).
There should be an executable file called jsvc and some text files
- Copy the executable to the location where you want to run it.
- Write a suitable shell script
(see in src/samples and src/native/unix/native/Tomcat.sh)
to get your Java application started as a daemon.
procrun
The Windows archive (e.g. commons-daemon-1.0.10-bin-windows.zip) contains 2 different executables:
- prunsrv.exe - service application for running applications as services.
- prunmgr.exe - the GUI manager application used to monitor and configure installed services.
There is only one
prunmgr.exe application for all architectures.
The
prunsrv.exe executable is available in 3 different versions for different architectures.
The version in the top-level directory is for 32-bit (x86) architectures.
The lower level directories are for 64-bit systems:
- amd64 - AMD/EMT 64-bit
- ia64 - Intel Itanium 64-bit
The Windows application
prunsrv.exe is used to install an application as a service.
Once installed,
prunmgr.exe can be used to monitor and reconfigure the service.
(see
procrun for more information).
The Windows binary zip archive should be unpacked into the location from which you wish to run it, for example:
%ProgramFiles%\Apache Commons Daemon