multiple instances of tomcat
Edward Quick
edwardquick at hotmail.com
Sat May 23 14:49:15 UTC 2015
Hi,
First just to say I'm running F21.
I found a post on setting up multiple tomcat instances at https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20130708/1055381.html which states:
In the new world, if you need an instance, you'll create a directory
/var/lib/tomcats/name, create {conf temp work webapps} in it, and then
systemctl enable tomcat at name.service.
So I created /var/lib/tomcats/instance1, /var/lib/tomcats/instance2 and /var/lib/tomcats/instance3
I then ran:
[root at laptop system]# systemctl enable tomcat at instance1.service
Created symlink from /etc/systemd/system/multi-user.target.wants
/tomcat at instance1.service to /usr/lib/systemd/system/tomcat at .service.
[root at laptop system]# systemctl enable tomcat at instance2.service
Created symlink from /etc/systemd/system/multi-user.target.wants
/tomcat at instance2.service to /usr/lib/systemd/system/tomcat at .service.
[root at laptop system]# systemctl enable tomcat at instance3.service
Created symlink from /etc/systemd/system/multi-user.target.wants/tomcat at instance3.service to /usr/lib/systemd/system/tomcat at .service.
And created these sysconfig files, changing the CATALINA_BASE to match the corresponding directory under /var/lib/tomcats:
[root at laptop system]# ls -l /etc/sysconfig/*tomcat*
-rw-rw-r--. 1 root tomcat 490 Feb 14 21:29 /etc/sysconfig/tomcat
-rw-r--r--. 1 root root 194 May 23 14:58 /etc/sysconfig/tomcat at instance1
-rw-r--r--. 1 root root 194 May 23 14:59 /etc/sysconfig/tomcat at instance2
-rw-r--r--. 1 root root 194 May 23 15:00 /etc/sysconfig/tomcat at instance3
Unfortunately everytime I try to start one of these instances, for example, if I run
systemctl start tomcat at instance2
it just starts up the system installed tomcat with CATALINA_BASE /usr/share/tomcat.
Please could you tell me if I am doing anything obviously wrong here? :)
Thanks for any help.
Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20150523/905f3689/attachment.html>
More information about the users
mailing list