I&#39;m pretty sure I&#39;ve seen a tomcat6 package too. I&#39;ll take a look at your links once I get my hands on my laptop.<br><br>--<br>On my phone,<br>Dridi<br><br>On Wednesday, October 23, 2013, Robert Rati &lt;<a href="mailto:rrati@redhat.com">rrati@redhat.com</a>&gt; wrote:<br>
&gt; Here&#39;s a listing of the directory structure hadoop and similar bits produce in their builds:<br>&gt;<br>&gt; <a href="http://paste.fedoraproject.org/48849/13825327">http://paste.fedoraproject.org/48849/13825327</a><br>
&gt;<br>&gt; There&#39;s a some stuff in there that&#39;s can obviously be paired down. Here&#39;s the script used to start/stop the service:<br>&gt;<br>&gt; <a href="http://paste.fedoraproject.org/48852/38253290">http://paste.fedoraproject.org/48852/38253290</a><br>
&gt;<br>&gt; It should be noted that upstream hadoop, and its ecosystem, use tomcat 6.x and as part of packaging it we&#39;ve moved forward to tomcat 7.x.<br>&gt;<br>&gt; Rob<br>&gt;<br>&gt; On 10/22/2013 12:27 PM, Dridi Boukelmoune wrote:<br>
&gt;&gt;<br>&gt;&gt; I&#39;ve installed tomcat 7 on my machine to take a quick look at how it&#39;s packaged:<br>&gt;&gt; - exploded FHS-compliant layout<br>&gt;&gt; - systemd-friendly equivalent to catalina.sh<br>&gt;&gt; - default configuration in /etc<br>
&gt;&gt;<br>&gt;&gt; Now if you want to run a tomcat instance (by instance I mean<br>&gt;&gt; $CATALINA_BASE) /usr/sbin/tomcat seems to be the best candidate.<br>&gt;&gt; Unlike catalina.sh, it expects a value for all the CATALINA_* variables<br>
&gt;&gt; in its environment, while catalina.sh has fall-backs relative to<br>&gt;&gt; $CATALINA_HOME. Simply using /usr/sbin/tomcat as a substitute to<br>&gt;&gt; catalina.sh wouldn&#39;t work of course.<br>&gt;&gt;<br>&gt;&gt; Could you please post an example of what maven produces ? This would<br>
&gt;&gt; help see what could be done with simple maven configuration (eg.<br>&gt;&gt; -Dsystem=properties) and what would require a patch (and help estimate<br>&gt;&gt; the amount of work).<br>&gt;&gt;<br>&gt;&gt; Dridi<br>
&gt;&gt;<br>&gt;&gt; On Tue, Oct 22, 2013 at 4:59 PM, Robert Rati &lt;<a href="mailto:rrati@redhat.com">rrati@redhat.com</a>&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; The lack of the tomcat shell scripts is causing issue with hadoop and some<br>
&gt;&gt;&gt; of their ecosystem packages.  Some are webapps with custom configuration.<br>&gt;&gt;&gt; The maven builds all create a tomcat install area with their custom<br>&gt;&gt;&gt; configurations.  It&#39;s not too hard to take that and adapt to fedora&#39;s tomcat<br>
&gt;&gt;&gt; if the schell scripts were packaged.  Then these services could be<br>&gt;&gt;&gt; stopped/started with systemd like other services.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; That&#39;s assuming catalina.sh and friends are present and functional. :)<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt; Rob<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 10/21/2013 04:42 PM, Dridi Boukelmoune wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Hi,<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; The catalina.sh script work with the $CATALINA_HOME (tomcat binaries)<br>
&gt;&gt;&gt;&gt; and $CATALINA_BASE (tomcat instances) directories. My guess is that<br>&gt;&gt;&gt;&gt; tomcat is packaged as a native (previously sysvinit, and now systemd)<br>&gt;&gt;&gt;&gt; service, and that instances wouldn&#39;t make sense. Other scripts like<br>
&gt;&gt;&gt;&gt; startup.sh are just sugar wrappers to the catalina.sh script.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; When I say it wouldn&#39;t make sense, I mean that it was probably<br>&gt;&gt;&gt;&gt; packaged to feel like any other server:<br>
&gt;&gt;&gt;&gt; sudo service tomcat start<br>&gt;&gt;&gt;&gt; or<br>&gt;&gt;&gt;&gt; sudo systemctl start tomcat<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; The package probably owns directories in /var (or somewhere else) that<br>
&gt;&gt;&gt;&gt; would make it multi-instance unfriendly.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; The catalina.sh script also expects sub-directories in $CATALINA_HOME<br>&gt;&gt;&gt;&gt; and $CATALINA_BASE. I suspect that tomcat explodes the directory<br>
&gt;&gt;&gt;&gt; layout (in /usr, /var, maybe /etc) in order to be FHS compliant, which<br>&gt;&gt;&gt;&gt; would probably break catalina.sh and its friends.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; I&#39;ll install tomcat and take a look at the package ASAP.<br>
&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Dridi<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; On Mon, Oct 21, 2013 at 9:07 PM, Robert Rati &lt;<a href="mailto:rrati@redhat.com">rrati@redhat.com</a>&gt; wrote:<br>&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I logged a bz (<a href="https://bugzilla.redhat.com/show_bug.cgi?id=990588">https://bugzilla.redhat.com/show_bug.cgi?id=990588</a>) to<br>&gt;&gt;&gt;&gt;&gt; request that the tomcat shell scripts (catalina.sh and the rest) be<br>
&gt;&gt;&gt;&gt;&gt; packaged.  I&#39;ve had some discussions with the person the bz is assigned<br>&gt;&gt;&gt;&gt;&gt; to<br>&gt;&gt;&gt;&gt;&gt; and few others, but no one knows why the scripts were not packaged. Nor,<br>
&gt;&gt;&gt;&gt;&gt; it<br>&gt;&gt;&gt;&gt;&gt; seems, does anyone see a problem with them being packaged as far as I can<br>&gt;&gt;&gt;&gt;&gt; tell.<br>&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Does anyone know some history here?<br>
&gt;&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;&gt; Rob<br>&gt;&gt;&gt;&gt;&gt; --<br>&gt;&gt;&gt;&gt;&gt; java-devel mailing list<br>&gt;&gt;&gt;&gt;&gt; <a href="mailto:java-devel@lists.fedoraproject.org">java-devel@lists.fedoraproject.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/java-devel">https://admin.fedoraproject.org/mailman/listinfo/java-devel</a><br>&gt;