Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Closing NGINX processes from another program

$
0
0
Hello, I launch nginx from a program that I've written in Java. On Windows, I see two processes with Task Manager. But with my Java application I can only control/close one of them.

How do I make them both close?

Java code with witch I start it:
[code]
process = Runtime.getRuntime().exec("nginx");
[/code]
Where "process" is an instance variable.

For turning it off I both tried using the "destory" method and sending a "quit" command to it.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>