From 0558bc41a3c1cca68ba8b0fc3f65f42ee49b79a5 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sun, 6 Dec 2015 17:33:44 +0000
Subject: [PATCH] Add wrapper deadlock detection to default wrapper.config

---
 installer/resources/wrapper.config | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/installer/resources/wrapper.config b/installer/resources/wrapper.config
index 8ed9410d86..3601991da1 100644
--- a/installer/resources/wrapper.config
+++ b/installer/resources/wrapper.config
@@ -285,3 +285,10 @@ wrapper.ntservice.starttype=AUTO_START
 # Allow the service to interact with the desktop.
 wrapper.ntservice.interactive=false
 
+# http://wrapper.tanukisoftware.com/doc/english/prop-check-deadlock.html
+# requires wrapper 3.5.0 or higher
+# interval is seconds
+wrapper.check.deadlock=TRUE
+wrapper.check.deadlock.interval=3699
+wrapper.check.deadlock.action=DUMP,RESTART
+wrapper.check.deadlock.output=FULL
-- 
GitLab