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

Re: [cobalt-developers] Re-Starting Individual Instances of Tomcat



Joseph Annam wrote:

> Jeff, I should have mentioned that I occassionally need to stop and start an
> individual Virtual Site without affecting the rest of the Virtual Sites.
> 
> At present I have to re-start Tomcat, which means all the virtual sites get
> re-started.

If you do an

# /etc/rc.d/init.d/httpd reload

from the command line as root, you'll gracefully restart apache.  What
that means is that no one currently browsing any sites on your system
will see the difference.

To shut down a site you can either completely disable a site from the
gui, or just comment out all the virtual site stuff for that site in
/etc/httpd/conf/httpd.conf, then do the reload (as above).  Then to
restart that site you just un-comment those lines, and do it again.

I don't know of any other easy way to do it, since apache is only
running once for all your sites.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net
P. O. Box 52672, Riverside, CA  92517
voice: (909) 778-9980  *  fax: (702) 548-9484