Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
How to assemble the jar to run as a service in Linux? - bug-code.com Q&A

How to assemble the jar to run as a service in Linux?

0 like 0 dislike
55 views
Wanted to know how do build a Java application (jar) to run correctly on Linux as a service (socket server)?
asked by | 55 views

5 Answers

0 like 0 dislike
The usual jarnik.
Write the PID file.
Zapusti with & at the end.
Monitor monitом or to write init-scripts/systemd-units to the monitoring of the process with this PID
answered by
0 like 0 dislike
participating in the launch string systemd unit
ExecStart=/usr/bin/java-jar /path/to/program.jar
Type=simple or to taste.
answered by
0 like 0 dislike
? A Jar is just a zip archive. If you want to include dependencies,make fat-jar (uber jar). The launch is on the side of systemd,there dig. The question you have ill-posed,no magic jar,the ground under run through systemd/systemV.
answered by
0 like 0 dislike
Look at YAJSW, it will help
\ryajsw.sourceforge.net
answered by
0 like 0 dislike
This tool is just what you are looking. Also works with all provisioning systems.

wrapper.tanukisoftware.com
answered by
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers

0 comments

12.3k users

24,788 questions
46,220 answers
0 comments
12,337 users