User Tools

Site Tools


java:javaservicelinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
java:javaservicelinux [2015/01/25 20:47] – created rlunarojava:javaservicelinux [2022/12/02 22:02] (current) – external edit 127.0.0.1
Line 3: Line 3:
 I've developed recently a runlevel shell script for a java service. I've developed a simple one based on the criteria that it must be adapted to every particular flavor of linux (Ubuntu and SuSE have their particular skeleton files to place a new server, so I imagine that in every case is different.  I've developed recently a runlevel shell script for a java service. I've developed a simple one based on the criteria that it must be adapted to every particular flavor of linux (Ubuntu and SuSE have their particular skeleton files to place a new server, so I imagine that in every case is different. 
  
-Here is my script+Here is my script (see below). Once launched the java process as a background server with the & command, it saves the current pid file with the $! special variable, who has the last backgrounded process.  
 + 
 +With that I can stop then the process issuing a gentle kill and then a hard kill (just in cas the process is hung).  
  
 <code shell> <code shell>
java/javaservicelinux.1422215253.txt.gz · Last modified: 2022/12/02 22:02 (external edit)