forked from I2P_Developers/i2p.i2p
Wrapper: Listen for Windows Service shutdown events and shutdown router hard.
As a result, event log will now show "shutdown" instead of "crashed".
This commit is contained in:
@@ -160,8 +160,7 @@ public class ConfigServiceHandler extends FormHandler {
|
||||
* @since 0.8.13
|
||||
*/
|
||||
synchronized static void registerSignalHandler(RouterContext ctx) {
|
||||
if (ctx.hasWrapper() && _wrapperListener == null &&
|
||||
!SystemVersion.isWindows()) {
|
||||
if (ctx.hasWrapper() && _wrapperListener == null) {
|
||||
String wv = System.getProperty("wrapper.version");
|
||||
if (wv != null && VersionComparator.comp(wv, LISTENER_AVAILABLE) >= 0) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user