In the meantime I started looking at /etc/init.d/tomcat6 and figured out that you need to make a copy of it with a different name, like /etc/init.d/tomcat6_instance2, edit “Provides” and so on.
Also copy /etc/sysconfig/tomcat6 to /etc/sysconfig/tomcat6_instance2.
This is the way it’s supposed to work.
But actually, it’s a disastruous train wreck.
The initscript is supposed to create directories for a second instance and copy necessary files. They way it does that, whenever SUSE issues an update for the .rpm, the second instance does not get updated! Distro updates are the sole reason I wanted to use the SUSE rpm.
Not giving up, I erased all that ******** and went to manually creating symlinks the proper way, so that all the instances are using the same binary but have different configuration files.
It’s working beautifully now.
The SUSE idea from /etc/init.d/tomcat6 was good, but the execution was awful. No documentation anywhere, config files missing essential parameters (you must specify TOMCAT_CFG in /etc/sysconfg/tomcat6_instance2, otherwise dtomcat6 tries to start the first instance all the time), no love for old Tomcat6.