Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java daemon under Linux: Choices?

I have a console application (written in Java), which should run on a Linux machine until it is stopped.

Logging is done by the application itself.

The application needs to be stopped whenever a new version is available (i. e. I login, stop the application, copy the new JAR file, and then launch it again).

What are the options for implementing this, apart from those specified below?

Known ways to do it:

1) Tanuki service wrapper

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

like image 781
Dmitrii Pisarenko Avatar asked Sep 29 '11 11:09

Dmitrii Pisarenko


1 Answers

I use Java Service Wrapper, but you already mentioned it. I think it should suit your needs.

Apache Commons Daemon is also popular: http://commons.apache.org/daemon/, but I never used it.

like image 69
Eran Harel Avatar answered Oct 19 '22 04:10

Eran Harel