Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question