K
K
krll-k2014-08-26 17:24:03
linux
krll-k, 2014-08-26 17:24:03

How to create a daemon for application jar and add it to startup?

There is a jar file, I run it manually:
java -jar /path/to/my/jar/file
I want this program to start automatically, and it can be turned off:
$ sudo service my_jar_program stop
How to create a daemon for the jar application and add it to startup?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
anyd3v, 2014-08-26
@anyd3v

www.debian-administration.org/article/28/Making_sc...

S
Sergey Petrikov, 2014-08-26
@RicoX

You could at least write an OS, but the essence is this: we create a script for launching this file, we give execution rights, we throw it into autorun, examples for every taste for deb or rhl like:
askubuntu.com/questions/99232/how-to-make-a- jar-fi...
superuser.com/questions/356602/how-to-work-with-th...
stackoverflow.com/questions/11809191/linux-launch-...
stackoverflow.com/questions/22925608/launch -java-a...
, for free and other bsd put in /usr/local/etc/rc.d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question