Welcome! Log In Create A New Profile

Advanced

Closing NGINX processes from another program

Posted by Bebras 
Closing NGINX processes from another program
September 04, 2014 10:45AM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 320
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready