Keeping NuProcesses running after Java application exit?
gagarski opened this issue · 1 comments
gagarski commented
Is there an option to keep the started processes running even after the Java process exits. On Linux killing a parent does not mean that children also die, so I guess killing them is done by some NuProcess shutdown hooks. Doing kill -9
on a Java process confirms this guess by leaving the processes running (at first glance it seems that they do not suffer from the output streams not being consumed by anyone (unlike standard Java Process
es) but the tests I did were quite simple). Can I achieve the same behavior when using graceful shutdown (like SIGTERM
or just System.exit
)? Or are there problems which I don't see now?
gagarski commented
com.zaxxer.nuprocess.enableShutdownHook
property seems to be doing the thing