Monday 20 February 2012

Running Java process in background



nohup command in linux can be used to run java process in background. 

nohup is most often used to run commands in the background as daemons.

nohup is a POSIX command to ignore the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. The HUP (hangup) signal is by convention the way a terminal warns depending processes of logout.


  Below command runs the java application in background.
 nohup java -jar sample.jar &

No comments:

Post a Comment