Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356423 - Change /etc/init.d/tomcat-6 to use $SVCNAME to build pidfile for easy multi-instance configuration
Summary: Change /etc/init.d/tomcat-6 to use $SVCNAME to build pidfile for easy multi-i...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 14:46 UTC by Jochen Seeber
Modified: 2011-03-07 21:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to change tomcat-6 to ${SVCNAME} (patch.txt,620 bytes, patch)
2011-02-25 14:48 UTC, Jochen Seeber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Seeber 2011-02-25 14:46:43 UTC
Currently, the tomcat-6 startup script in /etc/init.d contains the following value for pidfile:

--pidfile /var/run/tomcat-6.pid

We suggest changing these to

--pidfile /var/run/${SVCNAME}.pid

With this, multiple instances of tomcat can be run on one box by copying/symlinking the tomcat-6 files in /etc/init.d and /etc/conf.d

E.g.
ln -s /etc/init.d/tomcat-6 /etc/init.d/tomcat.instance
cp /etc/conf.d/tomcat-6 /etc/conf.d/tomcat.instance

gives you the init script and config for a new instance. After changing the conf.d file, you can start a second instance by

rc-config add tomcat.instance default

without further changint the init script.
Comment 1 Jochen Seeber 2011-02-25 14:48:49 UTC
Created attachment 263791 [details, diff]
Patch to change tomcat-6 to ${SVCNAME}
Comment 2 William L. Thomson Jr. 2011-03-01 22:46:00 UTC
Changing this to an enhancement request vs bug. Its really not a complete request either, patch is not really usable. It will require much more than a simple change to the init script and pid file name, to provide full support for multiple instances of tomcat on gentoo.
Comment 3 Jochen Seeber 2011-03-02 10:48:47 UTC
I agree that it is only the first (small) step towards a full solution. However, it will allow people to use Gentoo's init script as part of their solution vs. having to patch it. It also does not break current installations.
Comment 4 Jochen Seeber 2011-03-02 10:49:17 UTC
I agree that it is only the first (small) step towards a full solution. However, it will allow people to use Gentoo's init script as part of their solution vs. having to patch it. It also does not break current installations.
Comment 5 William L. Thomson Jr. 2011-03-07 21:41:53 UTC
I am closing this bug as wontfix. There are enough problems with the Tomcat package, this is not a complete solution. It will only serve to confuse users in ways which I cannot support and have no plans to support any time soon.

I went out of my way to remove the partially complete profiling support that existed in Tomcat years ago.

http://www.gentoo-wiki.info/Tomcat_Gentoo_ebuild

Once all bugs on Tomcat are closed, which there is presently a considerable amount, I can start to consider enhancing it with features such as profiling/multi-instance.

FYI no one used the profiling ability when it was implemented. Just the init script and other things lacked support for that. The parts I did not finish, and there was no user interest at that time. Thus even once all bugs are closed, and I get around to considering such. Unless there are lots of users wanting such a feature and will use it. I will likely expend the time in other areas and ways.