[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] restarting apache after Java Developer Kit Release 1.3 pkg install



On Thursday, September 6, 2001, at 12:38 AM, Hosting Sales wrote:

Yours is doing this twice.  If you look at
/etc/rc.d/init.d/httpd under the start option, you'll probably find two
entries that relate to java, possibly one from an earlier version which
no longer exists (having been replaced by new one) so the new one runs
twice.  Just remove one of them.

Jack, thanks for the quick reply! I didn't see anything related to java in /etc/rc.d/init.d/httpd, but did see an entry in /etc/httpd/conf/httpd.conf:

# Setup Tomcat
LoadModule jk_module /usr/lib/apache/mod_jk.so
<Perl>
# Tomcat needs to get started on USR1's
system("/etc/rc.d/init.d/tomcat.init stop");
system("rm -f /usr/java/jakarta-tomcat/conf/mod_jk.conf-auto");
system("rm -f /usr/java/jakarta-tomcat/conf/mod_jk.conf-cobalt-auto");
system("/etc/rc.d/init.d/tomcat.init start");
# Wait for our auto config to be ready... kind of a hack...
system("while ! [ -e /usr/java/jakarta-tomcat/conf/mod_jk.conf-auto ]; do sleep 1; done");
</Perl>
Include /usr/java/jakarta-tomcat/conf/mod_jk.conf-auto
Include /usr/java/jakarta-tomcat/conf/mod_jk.conf-cobalt-auto

The above is the default entry added by the java developer pkg. Note that this is a first time installation on a raq3. Since I'm really not a developer, I don't know how to interpret the above code, but it seems to me that mod_jk.conf-auto and mod_jk.conf-cobalt-auto is being called twice? Should I delete/comment out any of these lines, or should I be looking in the mod_jk.conf files for duplicates?

Thank you for your assistance!

enrique