Dieser Commit ist enthalten in:
Ursprung
0867fbf422
Commit
ab5c965f20
@ -136,10 +136,15 @@ public class Subserver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void stop() {
|
public void stop() {
|
||||||
|
try {
|
||||||
|
long pid = process.pid();
|
||||||
if(checkpoint)
|
if(checkpoint)
|
||||||
process.children().forEach(ProcessHandle::destroy);
|
pid = process.children().findAny().map(ProcessHandle::pid).orElse(pid);
|
||||||
else
|
|
||||||
execute("stop");
|
Runtime.getRuntime().exec(new String[]{"kill", "-SIGUSR1", Long.toString(pid)});
|
||||||
|
} catch (IOException e) {
|
||||||
|
ProxyServer.getInstance().getLogger().log(Level.SEVERE, "Failed to send SIGUSR1 to subserver.", e);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if(!process.waitFor(1, TimeUnit.MINUTES))
|
if(!process.waitFor(1, TimeUnit.MINUTES))
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren