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@laptop system]# systemctl enable tomcat@instance1.service Created symlink from /etc/systemd/system/multi-user.target.wants /tomcat@instance1.service to /usr/lib/systemd/system/tomcat@.service. [root@laptop system]# systemctl enable tomcat@instance2.service Created symlink from /etc/systemd/system/multi-user.target.wants /tomcat@instance2.service to /usr/lib/systemd/system/tomcat@.service. [root@laptop system]# systemctl enable tomcat@instance3.service Created symlink from /etc/systemd/system/multi-user.target.wants/tomcat@instance3.service to /usr/lib/systemd/system/tomcat@.service. And created these sysconfig files, changing the CATALINA_BASE to match the corresponding directory under /var/lib/tomcats: [root@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@instance1 -rw-r--r--. 1 root root 194 May 23 14:59 /etc/sysconfig/tomcat@instance2 -rw-r--r--. 1 root root 194 May 23 15:00 /etc/sysconfig/tomcat@instance3 Unfortunately everytime I try to start one of these instances, for example, if I run systemctl start tomcat@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 |
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org