A daemon is a computer program that runs as a background process, executing tasks on a predefined schedule or in response to particular events, or in response to requests for information or services from other programs.
To start up a Java program as a daemon using Jsvc, we’ll need to do a few things:
a) Implement the Apache Commons Daemon interface.
b) Install Jsvc by downloading and compiling the source (C) or via the command line with the
sudo apt-get install jsvc command.
c) Create a bash shell script to launch the daemon and manage the basic set of daemon controls, namely: start, stop & restart. Others include reload & status.