anjanesh You can use nohup
to detach the process from the terminal like so:
( nohup java -jar project.jar > $HOME/logs/apps/app_name/app.log 2>&1 & )
Alternatively, you can use the daemonize
tool which is pre-installed on all Opalstack servers:
daemonize -a -o $HOME/logs/apps/app_name/app.log -e $HOME/logs/apps/app_name/app.log -p $HOME/logs/apps/app_name/app.pid /usr/bin/java -jar project.jar