Reference /etc/i2p/wrapper.config when OOM when using Debian packages

When I2P terminates with an OOM error, users are advised to update
$I2P/wrapper.config. That path isn't accurate for the Debian packages.
This commit is contained in:
kytv
2012-01-08 23:25:36 +00:00
parent b09071f20f
commit 0f62383aec
2 changed files with 12 additions and 0 deletions

11
debian/patches/0004-oom-listener.patch vendored Normal file
View File

@@ -0,0 +1,11 @@
--- a/router/java/src/net/i2p/router/tasks/OOMListener.java
+++ b/router/java/src/net/i2p/router/tasks/OOMListener.java
@@ -33,7 +33,7 @@
// gobble
}
}
- log.log(Log.CRIT, "To prevent future shutdowns, increase wrapper.java.maxmemory in $I2P/wrapper.config");
+ log.log(Log.CRIT, "To prevent future shutdowns, increase wrapper.java.maxmemory in /etc/i2p/wrapper.config");
_context.router().shutdown(Router.EXIT_OOM);
}
}

View File

@@ -1,3 +1,4 @@
0001-path-substitution.patch
0002-jbigi-soname.patch
0003-renaming-jcpuid.patch
0004-oom-listener.patch