Tool for creating a Java daemon service on Linux [closed]

Services on Linux are just shell scripts which start background processes. Have a look in /etc/init.d – you can open the files in a text editor. All you need is a bash script which responds to the parameters start and stop in an appropriate way (eg. start will start your service and record the process ID in a known location, stop will kill the process with the PID from the file you created), and then place it in /etc/init.d.

Have a look at Init Scripts and An introduction to services, runlevels, and rc.d scripts

Leave a Comment