I've found about a dozen different ways to skin this cat (no pun intended). Everything from creating a script in /etc/init.d/ to using jsvc. I was hoping someone out there, those of you out there who run Tomcat in this manner, how did *you* set this up? I can't seem to get it right. Any help would be greatly appreciated. Or even direction to an authoritative document.
Preston
On 10/28/05, Preston Crawford me@prestoncrawford.com wrote:
I've found about a dozen different ways to skin this cat (no pun intended). Everything from creating a script in /etc/init.d/ to using jsvc. I was hoping someone out there, those of you out there who run Tomcat in this manner, how did *you* set this up? I can't seem to get it right. Any help would be greatly appreciated. Or even direction to an authoritative document.
Couple things you can do here. I would get the java-sun nosrc.rpm from jpackage ( http://mirrors.dotsrc.org/jpackage/1.6/generic/SRPMS.non-free/java-1.4.2-sun... ) and the java sdk bin from http://java.sun.com/j2se/1.4.2/download.html (yes 1.4.2 is older, but it's what the rest of the stuff I'm going to link you to is built against. It's easier this way)
after that, set up an rpmbuild environment ( http://rpm.org/hintskinks/buildtree/ ) put the java sdk bin in SOURCES, and rpmbuild --rebuild the java nosrc.rpm Install the java rpms this built, which should be located in RPMS/i586
After all that fun, go to redhat's ftp site, and get the iso for the applications server. It's a free download, no license costs... (ftp://ftp.redhat.com/pub/redhat/linux/enterprise/4/en/RHAPS2/) get the one for your particular arch, extract the contents to a local directory, and run createrepo on it to generate some yum information for it. then add an apps.repo file to your /etc/yum.repos.d/ with contents similar to below:
[apps] name=Application repo baseurl=file:///export/mirror/apps gpgcheck=1 enabled=1
Import the GPG-RPM-KEY on the applications iso, and then 'yum install tomcat5". There will be several tomcat type rpms. The usual yum commands will show them. -- Jim Perrin System Administrator - UIT Ft Gordon & US Army Signal Center
Jim, I appreciate the thoroughness. And that does sound like it would be very solid and I may yet go that route. However there has to be an easier way, no?
Preston
On Saturday 29 October 2005 02:42 am, Preston Crawford wrote:
Jim, I appreciate the thoroughness. And that does sound like it would be very solid and I may yet go that route. However there has to be an easier way, no?
The nice folks over at opennms.org use tomcat4 and have rpms that install perfectly on centos4. They have an init script in the rpm. The only problem is you have to change the "ps -aux" to "ps -ef" in the stop portion or you get some errors when you stop tomcat.
ftp://ftp.opennms.org/pub/dependencies/tomcat4/
Tim
Preston
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 10/29/05, Preston Crawford me@prestoncrawford.com wrote:
Jim, I appreciate the thoroughness. And that does sound like it would be very solid and I may yet go that route. However there has to be an easier way, no?
Preston
Eventually there will be. It's rumored that there's a rebuild of the apps iso coming for centos, however java is a sticking point as the license prohibits centos from distributing it.
-- Jim Perrin System Administrator - UIT Ft Gordon & US Army Signal Center
On Sat, 2005-10-29 at 08:13 -0400, Jim Perrin wrote:
On 10/29/05, Preston Crawford me@prestoncrawford.com wrote:
Jim, I appreciate the thoroughness. And that does sound like it would be very solid and I may yet go that route. However there has to be an easier way, no?
Preston
Eventually there will be. It's rumored that there's a rebuild of the apps iso coming for centos, however java is a sticking point as the license prohibits centos from distributing it.
Yeah, I know about that. I meant easier just in some directions on how to set it up as a service by hand.
Preston
On 10/29/05, Preston Crawford me@prestoncrawford.com wrote:
On Sat, 2005-10-29 at 08:13 -0400, Jim Perrin wrote:
On 10/29/05, Preston Crawford me@prestoncrawford.com wrote:
Jim, I appreciate the thoroughness. And that does sound like it would be very solid and I may yet go that route. However there has to be an easier way, no?
Preston
Eventually there will be. It's rumored that there's a rebuild of the apps iso coming for centos, however java is a sticking point as the license prohibits centos from distributing it.
Yeah, I know about that. I meant easier just in some directions on how to set it up as a service by hand.
See my comments in a separate thread, since this goes beyond Tomcat.
-- Collins Richey Debugging is twice as hard as writing the code ... If you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
On 10/29/05, Preston Crawford me@prestoncrawford.com wrote:
On Sat, 2005-10-29 at 08:13 -0400, Jim Perrin wrote:
On 10/29/05, Preston Crawford me@prestoncrawford.com wrote:
Jim, I appreciate the thoroughness. And that does sound like it
would be
very solid and I may yet go that route. However there has to be an easier way, no?
Preston
Eventually there will be. It's rumored that there's a rebuild of the apps iso coming for centos, however java is a sticking point as the license prohibits centos from distributing it.
Yeah, I know about that. I meant easier just in some directions on how to set it up as a service by hand.
See my comments in a separate thread, since this goes beyond Tomcat.
You commented on setting up services in a separate thread? I didn't catch that one. I'll look at what's in the past. What was the thread titled?
Preston
On 10/30/05, Preston Crawford me@prestoncrawford.com wrote:
You commented on setting up services in a separate thread? I didn't catch that one. I'll look at what's in the past. What was the thread titled?
Try the future and "CentOS proviiding additional services > was Setting up Tomcat".
-- Collins Richey Debugging is twice as hard as writing the code ... If you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan
On Sun, 2005-10-30 at 10:16 -0700, Collins Richey wrote:
On 10/30/05, Preston Crawford me@prestoncrawford.com wrote:
You commented on setting up services in a separate thread? I didn't catch that one. I'll look at what's in the past. What was the thread titled?
Try the future and "CentOS proviiding additional services > was Setting up Tomcat".
-- Collins Richey Debugging is twice as hard as writing the code ... If you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You'll find it here
http://lists.centos.org/pipermail/centos/2005-October/014109.html
On Sun, 2005-10-30 at 12:59 -0500, William L. Maltby wrote:
On Sun, 2005-10-30 at 10:16 -0700, Collins Richey wrote:
On 10/30/05, Preston Crawford me@prestoncrawford.com wrote:
You commented on setting up services in a separate thread? I didn't catch that one. I'll look at what's in the past. What was the thread titled?
Try the future and "CentOS proviiding additional services > was Setting up Tomcat".
-- Collins Richey Debugging is twice as hard as writing the code ... If you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -Brian Kernighan _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You'll find it here
http://lists.centos.org/pipermail/centos/2005-October/014109.html _______________________________________________
Duh. Too me, I mean. I didn't notice them when the subject changed. :-)
Thanks. I don't see anything in the Ubuntu Guide Collins references, though, that would help me, unfortunately. Since essentially I'm looking for init.d or daemon script for Tomcat. JPackage is just too much. I don't want to install a gaggle of RPMs with dependencies when I can just create a startup script.
Preston