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

0 like 0 dislike
32 views
Wanted to know how do build a Java application (jar) to run correctly on Linux as a service (socket server)?
asked by | 32 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

Related questions

0 like 0 dislike
2 answers
asked Sep 27, 2018 by alekseyizmaylov
0 like 0 dislike
1 answer
asked Sep 23, 2018 by kostyamega8
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
5 answers
asked Nov 20, 2018 by Balticman
24,509 questions
45,932 answers
0 comments
345 users