From 0f62383aecbbe5d9e9ee394b237bbb4815c748fa Mon Sep 17 00:00:00 2001 From: kytv Date: Sun, 8 Jan 2012 23:25:36 +0000 Subject: [PATCH] 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. --- debian/patches/0004-oom-listener.patch | 11 +++++++++++ debian/patches/series | 1 + 2 files changed, 12 insertions(+) create mode 100644 debian/patches/0004-oom-listener.patch diff --git a/debian/patches/0004-oom-listener.patch b/debian/patches/0004-oom-listener.patch new file mode 100644 index 000000000..f803b8d9e --- /dev/null +++ b/debian/patches/0004-oom-listener.patch @@ -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); + } + } diff --git a/debian/patches/series b/debian/patches/series index a289a6ae1..32c3c507a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0001-path-substitution.patch 0002-jbigi-soname.patch 0003-renaming-jcpuid.patch +0004-oom-listener.patch