How to make the java process run background

I am trying to use octopus to start the java package after deploy the package to Linux server. I am using below the shell command. But the octopus keep to show the logs which expected to write into the nohup log file in the front. And it make the strep can’t been stop because the process is keep running and log is keep increase. How could I make this to command could run background?

nohup java -jar xxxxx.jar &

Hi, thanks for getting in touch with the question.

I think what you are trying to do is start the java program as a service on the linux machine. Is that right?
For that you can look into setting it up directly with systemd for your linux flavour, or use something like http://supervisord.org/ or https://commons.apache.org/proper/commons-daemon/.

Michael

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.