My organization Uses self hosted agents & I am trying to run the jar file like below in pipeline bash Task.
java -jar $(ver).jar >/dev/null 2>&1 & --> The service is not listing when I run the netstat command to list the running services. Verified in the agent managed in the vmss(virtual machine scale set) but no service is running in port 1234.
java -jar $(ver).jar --> Since the jar is running continuously in pipeline Task, I checked the status of the service in agent managed in the vmss(virtual machine scale set) and netstat returning with the service is running in PORT 1234
Running the JAR in background makes it not visible or can be listed by netstat ?
Update : In console I am able to see "Shutting down proxy server gracefully" --> Why post starting proxy server it is shutting down