I\'m trying to run spring-boot on a vm and have nginx proxy all request towards it. I\'ve got this working but when I run:
To run a command even after You logout you can use nohup
command.
nohup
stands for "no hangup
." nohup
is a POSIX command to ignore the hangup signal. The hangup signal is, by convention, the way a terminal warns dependent processes of logout.
https://en.wikipedia.org/wiki/Nohup
http://linux.101hacks.com/unix/nohup-command/
Your command will look somewhat like
nohup mvn spring-boot:run &
If you are running you application in ubuntu, you can use nohup and & to run your process in background. It is simple and I hope it will solve your problem
nohup mvn spring-boot:run &
http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html