User Tools

Site Tools


java:javaservicelinux

Differences

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

Link to this comparison view

java:javaservicelinux [2015/01/25 20:47]
rlunaro created
java:javaservicelinux [2015/01/25 20:50] (current)
rlunaro
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.txt · Last modified: 2015/01/25 20:50 by rlunaro