If you deploy a java application in Ubuntu Server and you need to close the instance of shell script without stopping your application , you need to run your application through a script, it mean don’t execute your app directedly with the command :

java -jar myApp.jar

Just create a script.sh :

cd /var/www/
java -jar myApp.jar 

Then execute the script with the command :

sh script.sh

then you can close your shell instance without stopping your application !

Laisser un commentaire