diff -Nru tomcat6-6.0.35/debian/changelog tomcat6-6.0.35/debian/changelog --- tomcat6-6.0.35/debian/changelog 2012-02-13 14:04:07.000000000 +0000 +++ tomcat6-6.0.35/debian/changelog 2012-03-16 14:36:06.000000000 +0000 @@ -1,3 +1,9 @@ +tomcat6 (6.0.35-1ubuntu2) precise; urgency=low + + * init: Make NAME dynamic, to allow starting multiple instances. + + -- Timo Aaltonen Fri, 16 Mar 2012 16:31:20 +0200 + tomcat6 (6.0.35-1ubuntu1) precise; urgency=low * debian/patches/0011-CVE-2012-0022-regression-fix.patch: fix regression diff -Nru tomcat6-6.0.35/debian/tomcat6.init tomcat6-6.0.35/debian/tomcat6.init --- tomcat6-6.0.35/debian/tomcat6.init 2011-12-13 06:47:05.000000000 +0000 +++ tomcat6-6.0.35/debian/tomcat6.init 2012-03-16 14:28:08.000000000 +0000 @@ -23,7 +23,7 @@ set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin -NAME=tomcat6 +NAME="$(basename "$0" | sed 's/^[KS][0-9]\{2\}//')" DESC="Tomcat servlet engine" DEFAULT=/etc/default/$NAME JVM_TMP=/tmp/tomcat6-$NAME-tmp