FOLLOW ME Twitter Facebook Вконтакте LinkedIn RSS Feed

Running java on Debian via SSH

Jan 13, 2013
Konstantin Bulenkov

A few days ago I had a problem: run YouTrack on my VDS. YouTrack is a bug tracker written in Java. First time I run it as

java -jar youtrack.jar 8080 &

And this worked fine, until I closed my ssh session with the server. When you close a ssh session your terminal send the HUP (hangup) signal to warn all depending processes of logout. To avoid the HUP signal to be sent, run your java programs using hohup:

nohup java -jar youtrack.jar 8080 &

Leave a comment