Java daemon on Linux: a choice?

I have a console application (written in Java) that should run on a Linux machine until it stops.

Logging is done by the application itself.

The application should be stopped whenever a new version is available (for example, I log in, stop the application, copy the new JAR file and run it again).

What are the options for implementing this other than those listed below?

Known ways to do this:

1) Tanuki Maintenance Wrap

2) nohup java -jar myapp-1.32.jar &

+5
source share
4 answers

Linux upstart. daeomon, . . . , java-.

+2
+6

There are also afakas, demons there http://commons.apache.org/proper/commons-daemon/jsvc.html

Jsvc is a set of libraries and applications for easier running Java applications on UNIX.

Jsvc allows an application (such as Tomcat) to perform some privileged operations as root (for example, bind to port <1024), and then switch the authentication to a non-privileged user.

0
source

All Articles